Bug 1434125 - Add xpidl + rust command line arguments and output dependencies to the tup backend. draft
authorChris Manchester <cmanchester@mozilla.com>
Mon, 29 Jan 2018 15:44:58 -0800
changeset 748527 ac63eec68250e2f1d071f785304ac082c5a795eb
parent 748520 9a3b6d64a64b328ed0de3d6503b99f20d1c94cfb
push id97201
push userbmo:cmanchester@mozilla.com
push dateMon, 29 Jan 2018 23:45:33 +0000
bugs1434125
milestone60.0a1
Bug 1434125 - Add xpidl + rust command line arguments and output dependencies to the tup backend. MozReview-Commit-ID: 9DsymfiOB8N
python/mozbuild/mozbuild/backend/tup.py
--- a/python/mozbuild/mozbuild/backend/tup.py
+++ b/python/mozbuild/mozbuild/backend/tup.py
@@ -460,23 +460,26 @@ class TupOnly(CommonBackend, PartialBack
                 '$(PYTHON_PATH)',
                 '$(PLY_INCLUDE)',
                 '-I$(IDL_PARSER_DIR)',
                 '-I$(IDL_PARSER_CACHE_DIR)',
                 '$(topsrcdir)/python/mozbuild/mozbuild/action/xpidl-process.py',
                 '--cache-dir', '$(IDL_PARSER_CACHE_DIR)',
                 '$(DIST)/idl',
                 '$(DIST)/include',
+                '$(DIST)/xpcrs',
                 '$(MOZ_OBJ_ROOT)/%s/components' % dest,
                 module,
             ]
             cmd.extend(sorted(idls))
 
             outputs = ['$(MOZ_OBJ_ROOT)/%s/components/%s.xpt' % (dest, module)]
             outputs.extend(['$(MOZ_OBJ_ROOT)/dist/include/%s.h' % f for f in sorted(idls)])
+            outputs.extend(['$(MOZ_OBJ_ROOT)/dist/xpcrs/rt/%s.rs' % f for f in sorted(idls)])
+            outputs.extend(['$(MOZ_OBJ_ROOT)/dist/xpcrs/bt/%s.rs' % f for f in sorted(idls)])
             backend_file.rule(
                 inputs=[
                     '$(MOZ_OBJ_ROOT)/xpcom/idl-parser/xpidl/xpidllex.py',
                     '$(MOZ_OBJ_ROOT)/xpcom/idl-parser/xpidl/xpidlyacc.py',
                     self._installed_idls,
                 ],
                 display='XPIDL %s' % module,
                 cmd=cmd,