summaryrefslogtreecommitdiff
path: root/scons/custom.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-02-09 23:16:26 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-02-10 22:32:50 +0000
commit2311e2adf0db3c46a1054d94cdfcd2ec0badbfd3 (patch)
tree099edfc837552d14dc55234607043d652e8a5289 /scons/custom.py
parent2717d9066d46bff9b015f3d17dc05ce1335d0883 (diff)
scons: User friendly message for code generated files
Diffstat (limited to 'scons/custom.py')
-rw-r--r--scons/custom.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scons/custom.py b/scons/custom.py
index 572b963388a..364da292dd3 100644
--- a/scons/custom.py
+++ b/scons/custom.py
@@ -56,6 +56,7 @@ def quietCommandLines(env):
env['SHLINKCOMSTR'] = " Linking $TARGET ..."
env['LDMODULECOMSTR'] = " Linking $TARGET ..."
env['SWIGCOMSTR'] = " Generating $TARGET ..."
+ env['CODEGENCOMSTR'] = " Generating $TARGET ..."
def createConvenienceLibBuilder(env):
@@ -125,7 +126,8 @@ def code_generate(env, script, target, source, command):
# This command creates generated code *in the build directory*.
command = command.replace('$SCRIPT', script_src.path)
- code = env.Command(target, source, command)
+ action = SCons.Action.Action(command, "$CODEGENCOMSTR")
+ code = env.Command(target, source, action)
# Explicitly mark that the generated code depends on the generator,
# and on implicitly imported python modules