mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
scons: User friendly message for code generated files
This commit is contained in:
parent
2717d9066d
commit
2311e2adf0
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ def glsl_compile_emitter(target, source, env):
|
|||
return (target, source)
|
||||
|
||||
bld_frag = Builder(
|
||||
action = glsl_compile[0].abspath + ' fragment $SOURCE $TARGET',
|
||||
action = Action(glsl_compile[0].abspath + ' fragment $SOURCE $TARGET', '$CODEGENCODESTR'),
|
||||
emitter = glsl_compile_emitter,
|
||||
suffix = '.gc',
|
||||
src_suffix = '_gc.h')
|
||||
|
||||
bld_vert = Builder(
|
||||
action = glsl_compile[0].abspath + ' vertex $SOURCE $TARGET',
|
||||
action = Action(glsl_compile[0].abspath + ' vertex $SOURCE $TARGET', '$CODEGENCODESTR'),
|
||||
emitter = glsl_compile_emitter,
|
||||
suffix = '.gc',
|
||||
src_suffix = '_gc.h')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue