зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1319345 - Add flags to GENERATED_FILES. r=mshal
--HG-- extra : rebase_source : 8b976e6880e018e56cebd65c30674be9721dfd8d
This commit is contained in:
Родитель
9435e5a0fa
Коммит
f3991f6ba9
|
@ -963,13 +963,15 @@ VARIABLES = {
|
||||||
|
|
||||||
'GENERATED_FILES': (StrictOrderingOnAppendListWithFlagsFactory({
|
'GENERATED_FILES': (StrictOrderingOnAppendListWithFlagsFactory({
|
||||||
'script': unicode,
|
'script': unicode,
|
||||||
'inputs': list }), list,
|
'inputs': list,
|
||||||
|
'flags': list, }), list,
|
||||||
"""Generic generated files.
|
"""Generic generated files.
|
||||||
|
|
||||||
This variable contains a list of files for the build system to
|
This variable contains a list of files for the build system to
|
||||||
generate at export time. The generation method may be declared
|
generate at export time. The generation method may be declared
|
||||||
with optional ``script`` and ``inputs`` flags on individual entries.
|
with optional ``script``, ``inputs`` and ``flags`` attributes on
|
||||||
If the optional ``script`` flag is not present on an entry, it
|
individual entries.
|
||||||
|
If the optional ``script`` attribute is not present on an entry, it
|
||||||
is assumed that rules for generating the file are present in
|
is assumed that rules for generating the file are present in
|
||||||
the associated Makefile.in.
|
the associated Makefile.in.
|
||||||
|
|
||||||
|
@ -1003,6 +1005,9 @@ VARIABLES = {
|
||||||
|
|
||||||
The chosen script entry point may optionally return a set of strings,
|
The chosen script entry point may optionally return a set of strings,
|
||||||
indicating extra files the output depends on.
|
indicating extra files the output depends on.
|
||||||
|
|
||||||
|
When the ``flags`` attribute is present, the given list of flags is
|
||||||
|
passed as extra arguments following the inputs.
|
||||||
"""),
|
"""),
|
||||||
|
|
||||||
'DEFINES': (InitializedDefines, dict,
|
'DEFINES': (InitializedDefines, dict,
|
||||||
|
|
|
@ -1241,7 +1241,8 @@ class TreeMetadataEmitter(LoggingMixin):
|
||||||
else:
|
else:
|
||||||
script = None
|
script = None
|
||||||
method = None
|
method = None
|
||||||
yield GeneratedFile(context, script, method, outputs, inputs)
|
yield GeneratedFile(context, script, method, outputs, inputs,
|
||||||
|
flags.flags)
|
||||||
|
|
||||||
def _process_test_manifests(self, context):
|
def _process_test_manifests(self, context):
|
||||||
for prefix, info in TEST_MANIFESTS.items():
|
for prefix, info in TEST_MANIFESTS.items():
|
||||||
|
|
Загрузка…
Ссылка в новой задаче