Bug 1319223 - Generate interfaces.manifest files in the tup backend. r=mshal
authorChris Manchester <cmanchester@mozilla.com>
Wed, 07 Jun 2017 16:27:58 -0700
changeset 363042 0900434f24159cea6699b4f5db57b23425208686
parent 363041 f0fc4ee3e6552758fe7a1865fe3d3a8043d7ac12
child 363043 7d58abacf87b29394def7cf7a4c9d51df9a5fc28
push id44385
push usercmanchester@mozilla.com
push dateThu, 08 Jun 2017 21:18:24 +0000
treeherderautoland@0900434f2415 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1319223
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1319223 - Generate interfaces.manifest files in the tup backend. r=mshal MozReview-Commit-ID: 92N8ZqtqjUr
python/mozbuild/mozbuild/backend/tup.py
--- 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])