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:
Mike Shal 2016-04-29 13:41:41 -04:00
Родитель bbb194061e
Коммит 4bb82a657d
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -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