Bug 1319223 - Generate interfaces.manifest files in the tup backend.
MozReview-Commit-ID: 92N8ZqtqjUr
--- a/python/mozbuild/mozbuild/backend/tup.py
+++ b/python/mozbuild/mozbuild/backend/tup.py
@@ -367,16 +367,23 @@ class TupOnly(CommonBackend, PartialBack
'$(MOZ_OBJ_ROOT)/xpcom/idl-parser/xpidl/xpidlyacc.py',
self._installed_files,
],
display='XPIDL %s' % module,
cmd=cmd,
outputs=outputs,
)
+ for manifest, entries in manager.interface_manifests.items():
+ for xpt in entries:
+ self._manifest_entries[manifest].add('interfaces %s' % xpt)
+
+ for m in manager.chrome_manifests:
+ self._manifest_entries[m].add('manifest components/interfaces.manifest')
+
def _preprocess(self, backend_file, input_file, destdir=None):
# .css files use '%' as the preprocessor marker, which must be scaped as
# '%%' in the Tupfile.
marker = '%%' if input_file.endswith('.css') else '#'
cmd = self._py_action('preprocessor')
cmd.extend([shell_quote(d) for d in backend_file.defines])
cmd.extend(['$(ACDEFINES)', '%f', '-o', '%o', '--marker=%s' % marker])