Bug 912197 - part 1 - add classes for WebIDL source files; r=gps
authorNathan Froyd <froydnj@mozilla.com>
Thu, 05 Sep 2013 11:18:55 -0400
changeset 146418 dc86c80d01c05309daada4b95283dbf748fa35cb
parent 146417 3ade0212edd0ecb9fedde60740a6c9202384d49b
child 146419 1272d731770cc082aa98d6146f1d0aaefb3ac7ab
push id25260
push userryanvm@gmail.com
push dateWed, 11 Sep 2013 00:29:30 +0000
treeherdermozilla-central@f73bed2856a8 [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 1 - add classes for WebIDL source files; r=gps
python/mozbuild/mozbuild/frontend/data.py
--- a/python/mozbuild/mozbuild/frontend/data.py
+++ b/python/mozbuild/mozbuild/frontend/data.py
@@ -176,16 +176,65 @@ class IPDLFile(SandboxDerived):
         'basename',
     )
 
     def __init__(self, sandbox, path):
         SandboxDerived.__init__(self, sandbox)
 
         self.basename = path
 
+class WebIDLFile(SandboxDerived):
+    """Describes an individual .webidl source file."""
+
+    __slots__ = (
+        'basename',
+    )
+
+    def __init__(self, sandbox, path):
+        SandboxDerived.__init__(self, sandbox)
+
+        self.basename = path
+
+class TestWebIDLFile(SandboxDerived):
+    """Describes an individual test-only .webidl source file."""
+
+    __slots__ = (
+        'basename',
+    )
+
+    def __init__(self, sandbox, path):
+        SandboxDerived.__init__(self, sandbox)
+
+        self.basename = path
+
+class PreprocessedWebIDLFile(SandboxDerived):
+    """Describes an individual .webidl source file that requires preprocessing."""
+
+    __slots__ = (
+        'basename',
+    )
+
+    def __init__(self, sandbox, path):
+        SandboxDerived.__init__(self, sandbox)
+
+        self.basename = path
+
+class GeneratedWebIDLFile(SandboxDerived):
+    """Describes an individual .webidl source file that is generated from
+    build rules."""
+
+    __slots__ = (
+        'basename',
+    )
+
+    def __init__(self, sandbox, path):
+        SandboxDerived.__init__(self, sandbox)
+
+        self.basename = path
+
 class Program(SandboxDerived):
     """Sandbox container object for PROGRAM, which is a unicode string.
 
     This class handles automatically appending BIN_SUFFIX to the PROGRAM value.
     If BIN_SUFFIX is not defined, PROGRAM is unchanged.
     Otherwise, if PROGRAM ends in BIN_SUFFIX, it is unchanged
     Otherwise, BIN_SUFFIX is appended to PROGRAM
     """