Bug 1319222 - Compile the generated IPDL and WebIDL sources in the tup backend; r=chmanchester

The filenames that these objects generate are passed into the _handle_*
methods instead of with a Sources object, so they need to be added to
the BackendTupfile's list of sources separately.

MozReview-Commit-ID: GoqhiJ3Ismm

--HG--
extra : rebase_source : 60e53c2c28a93c543a99bff0463b2935b2826e09
This commit is contained in:
Mike Shal 2017-11-22 16:06:34 -05:00
Родитель 5e5570c9ca
Коммит 1cdf4db159
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -566,6 +566,7 @@ class TupOnly(CommonBackend, PartialBackend):
extra_outputs=[self._installed_files],
check_unchanged=True,
)
backend_file.sources['.cpp'].extend(u[0] for u in unified_ipdl_cppsrcs_mapping)
def _handle_webidl_build(self, bindings_dir, unified_source_mapping,
webidls, expected_build_output_files,
@ -598,6 +599,11 @@ class TupOnly(CommonBackend, PartialBackend):
extra_outputs=[self._installed_files],
check_unchanged=True,
)
backend_file.sources['.cpp'].extend(u[0] for u in unified_source_mapping)
backend_file.sources['.cpp'].extend(sorted(global_define_files))
test_backend_file = self._get_backend_file('dom/bindings/test')
test_backend_file.sources['.cpp'].extend(sorted('../%sBinding.cpp' % s for s in webidls.all_test_stems()))
class TupBackend(HybridBackend(TupOnly, RecursiveMakeBackend)):