зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1181450 - Make GENERATED_FILES more visible during the build by printing their name when they are being generated. r=gps
This commit is contained in:
Родитель
45be9b06a3
Коммит
b7e836094e
|
@ -494,6 +494,7 @@ class RecursiveMakeBackend(CommonBackend):
|
|||
backend_file.write('GENERATED_FILES += %s\n' % obj.output)
|
||||
if obj.script:
|
||||
backend_file.write("""{output}: {script}{inputs}
|
||||
\t$(REPORT_BUILD)
|
||||
\t$(call py_action,file_generate,{script} {method} {output}{inputs})
|
||||
|
||||
""".format(output=obj.output,
|
||||
|
|
|
@ -377,10 +377,12 @@ class TestRecursiveMakeBackend(BackendTester):
|
|||
expected = [
|
||||
'GENERATED_FILES += bar.c',
|
||||
'bar.c: %s/generate-bar.py' % env.topsrcdir,
|
||||
'$(REPORT_BUILD)',
|
||||
'$(call py_action,file_generate,%s/generate-bar.py baz bar.c)' % env.topsrcdir,
|
||||
'',
|
||||
'GENERATED_FILES += foo.c',
|
||||
'foo.c: %s/generate-foo.py %s/foo-data' % (env.topsrcdir, env.topsrcdir),
|
||||
'$(REPORT_BUILD)',
|
||||
'$(call py_action,file_generate,%s/generate-foo.py main foo.c %s/foo-data)' % (env.topsrcdir, env.topsrcdir),
|
||||
'',
|
||||
'GENERATED_FILES += quux.c',
|
||||
|
|
Загрузка…
Ссылка в новой задаче