Bug 1586036 - Add the files under obj-dir/dist/xpcrs/rt|bt in generated-sources.json r=firefox-build-system-reviewers,chmanchester

Some generated files are missing in generated-sources.json so just add them.

Differential Revision: https://phabricator.services.mozilla.com/D48085

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Calixte Denizet 2019-10-15 21:29:12 +00:00
parent 3936f012cd
commit 98f3f94379

View File

@ -203,9 +203,7 @@ class CommonBackend(BuildBackend):
if len(self._idl_manager.modules):
self._write_rust_xpidl_summary(self._idl_manager)
self._handle_idl_manager(self._idl_manager)
self._handle_generated_sources(
mozpath.join(self.environment.topobjdir, 'dist/include/%s.h' % stem)
for stem in self._idl_manager.idl_stems())
self._handle_xpidl_sources()
for config in self._configs:
self.backend_input_files.add(config.source)
@ -327,6 +325,22 @@ class CommonBackend(BuildBackend):
self._generated_sources.update(mozpath.relpath(
f, self.environment.topobjdir) for f in files)
def _handle_xpidl_sources(self):
bindings_rt_dir = mozpath.join(self.environment.topobjdir, 'dist', 'xpcrs', 'rt')
bindings_bt_dir = mozpath.join(self.environment.topobjdir, 'dist', 'xpcrs', 'bt')
include_dir = mozpath.join(self.environment.topobjdir, 'dist', 'include')
self._handle_generated_sources(
itertools.chain.from_iterable(
(
mozpath.join(include_dir, '%s.h' % stem),
mozpath.join(bindings_rt_dir, '%s.rs' % stem),
mozpath.join(bindings_bt_dir, '%s.rs' % stem),
)
for stem in self._idl_manager.idl_stems()
)
)
def _handle_webidl_collection(self, webidls):
bindings_dir = mozpath.join(self.environment.topobjdir, 'dom', 'bindings')