Bug 912197 - part 3 - emit WebIDL objects during traversal; r=gps
authorNathan Froyd <froydnj@mozilla.com>
Thu, 05 Sep 2013 11:19:33 -0400
changeset 159327 91ba20da3b79909dd5c8130a37517c6d9ab9eb88
parent 159326 1272d731770cc082aa98d6146f1d0aaefb3ac7ab
child 159328 5b8391be568d48b5e8633977a8cf936ebf4945fe
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs912197
milestone26.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 912197 - part 3 - emit WebIDL objects during traversal; r=gps
python/mozbuild/mozbuild/frontend/emitter.py
--- a/python/mozbuild/mozbuild/frontend/emitter.py
+++ b/python/mozbuild/mozbuild/frontend/emitter.py
@@ -10,23 +10,27 @@ import os
 from mach.mixin.logging import LoggingMixin
 
 import mozpack.path as mozpath
 
 from .data import (
     ConfigFileSubstitution,
     DirectoryTraversal,
     Exports,
+    GeneratedWebIDLFile,
     IPDLFile,
     LocalInclude,
+    PreprocessedWebIDLFile,
     Program,
     ReaderSummary,
+    TestWebIDLFile,
     VariablePassthru,
     XPIDLFile,
     XpcshellManifests,
+    WebIDLFile,
 )
 
 from .reader import (
     MozbuildSandbox,
     SandboxValidationError,
 )
 
 
@@ -166,16 +170,28 @@ class TreeMetadataEmitter(LoggingMixin):
             yield XpcshellManifests(sandbox, manifest)
 
         for ipdl in sandbox.get('IPDL_SOURCES', []):
             yield IPDLFile(sandbox, ipdl)
 
         for local_include in sandbox.get('LOCAL_INCLUDES', []):
             yield LocalInclude(sandbox, local_include)
 
+        for webidl in sandbox.get('WEBIDL_FILES', []):
+            yield WebIDLFile(sandbox, webidl)
+
+        for webidl in sandbox.get('TEST_WEBIDL_FILES', []):
+            yield TestWebIDLFile(sandbox, webidl)
+
+        for webidl in sandbox.get('PREPROCESSED_WEBIDL_FILES', []):
+            yield PreprocessedWebIDLFile(sandbox, webidl)
+
+        for webidl in sandbox.get('GENERATED_WEBIDL_FILES', []):
+            yield GeneratedWebIDLFile(sandbox, webidl)
+
     def _emit_directory_traversal_from_sandbox(self, sandbox):
         o = DirectoryTraversal(sandbox)
         o.dirs = sandbox.get('DIRS', [])
         o.parallel_dirs = sandbox.get('PARALLEL_DIRS', [])
         o.tool_dirs = sandbox.get('TOOL_DIRS', [])
         o.test_dirs = sandbox.get('TEST_DIRS', [])
         o.test_tool_dirs = sandbox.get('TEST_TOOL_DIRS', [])
         o.external_make_dirs = sandbox.get('EXTERNAL_MAKE_DIRS', [])