зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1269787 - Choose tier for GENERATED_FILES based on extension; r=glandium
Some generated files will depend on other generated files, but still need to be in the export tier because they are C++ headers. MozReview-Commit-ID: AFvp92lF0xy
This commit is contained in:
Родитель
bbb194061e
Коммит
4bb82a657d
|
@ -507,7 +507,14 @@ class RecursiveMakeBackend(CommonBackend):
|
|||
self._process_defines(obj, backend_file)
|
||||
|
||||
elif isinstance(obj, GeneratedFile):
|
||||
tier = 'misc' if any(isinstance(f, ObjDirPath) for f in obj.inputs) else 'export'
|
||||
export_suffixes = (
|
||||
'.c',
|
||||
'.cpp',
|
||||
'.h',
|
||||
'.inc',
|
||||
'.py',
|
||||
)
|
||||
tier = 'export' if any(f.endswith(export_suffixes) for f in obj.outputs) else 'misc'
|
||||
self._no_skip[tier].add(backend_file.relobjdir)
|
||||
first_output = obj.outputs[0]
|
||||
dep_file = "%s.pp" % first_output
|
||||
|
|
Загрузка…
Ссылка в новой задаче