Bug 1319345 - Add flags to GENERATED_FILES. r=mshal

--HG--
extra : rebase_source : 8b976e6880e018e56cebd65c30674be9721dfd8d
This commit is contained in:
Mike Hommey 2016-11-03 10:40:17 +09:00
Родитель 9435e5a0fa
Коммит f3991f6ba9
2 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -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():