зеркало из 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({
|
||||
'script': unicode,
|
||||
'inputs': list }), list,
|
||||
'inputs': list,
|
||||
'flags': list, }), list,
|
||||
"""Generic generated files.
|
||||
|
||||
This variable contains a list of files for the build system to
|
||||
generate at export time. The generation method may be declared
|
||||
with optional ``script`` and ``inputs`` flags on individual entries.
|
||||
If the optional ``script`` flag is not present on an entry, it
|
||||
with optional ``script``, ``inputs`` and ``flags`` attributes on
|
||||
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
|
||||
the associated Makefile.in.
|
||||
|
||||
|
@ -1003,6 +1005,9 @@ VARIABLES = {
|
|||
|
||||
The chosen script entry point may optionally return a set of strings,
|
||||
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,
|
||||
|
|
|
@ -1241,7 +1241,8 @@ class TreeMetadataEmitter(LoggingMixin):
|
|||
else:
|
||||
script = 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):
|
||||
for prefix, info in TEST_MANIFESTS.items():
|
||||
|
|
Загрузка…
Ссылка в новой задаче