Bug 864774 - Part 1: Support CPP_SOURCES in moz.build; r=gps
authorMike Shal <mshal@mozilla.com>
Tue, 23 Apr 2013 10:44:33 -0400
changeset 133040 d3b6e29faca11f2abb4a50679f83fb612d801022
parent 133039 2ca0856eb5ee7d16cc246c0bc37275f2ed123fdd
child 133041 6e45e9f62d2171419a8d8780ad4779ff0488ccb5
push id24737
push usermshal@mozilla.com
push dateMon, 27 May 2013 18:09:31 +0000
treeherdermozilla-central@6e45e9f62d21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs864774
milestone24.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 864774 - Part 1: Support CPP_SOURCES in moz.build; r=gps From 634fb39c43c258feca8c814c450cd9dfe30a8353 Mon Sep 17 00:00:00 2001
python/mozbuild/mozbuild/frontend/emitter.py
python/mozbuild/mozbuild/frontend/sandbox_symbols.py
--- a/python/mozbuild/mozbuild/frontend/emitter.py
+++ b/python/mozbuild/mozbuild/frontend/emitter.py
@@ -75,16 +75,17 @@ class TreeMetadataEmitter(object):
 
         # Proxy some variables as-is until we have richer classes to represent
         # them. We should aim to keep this set small because it violates the
         # desired abstraction of the build definition away from makefiles.
         passthru = VariablePassthru(sandbox)
         varmap = dict(
             # Makefile.in : moz.build
             ASFILES='ASFILES',
+            CPPSRCS='CPP_SOURCES',
             CSRCS='CSRCS',
             DEFINES='DEFINES',
             MODULE='MODULE',
             SIMPLE_PROGRAMS='SIMPLE_PROGRAMS',
             XPIDL_FLAGS='XPIDL_FLAGS',
             XPIDL_MODULE='XPIDL_MODULE',
             XPIDLSRCS='XPIDL_SOURCES',
             )
--- a/python/mozbuild/mozbuild/frontend/sandbox_symbols.py
+++ b/python/mozbuild/mozbuild/frontend/sandbox_symbols.py
@@ -197,16 +197,23 @@ VARIABLES = {
     'PROGRAM' : (unicode, unicode, "",
         """Compiled executable name.
 
         If the configuration token 'BIN_SUFFIX' is set, its value will be
         automatically appended to PROGRAM. If PROGRAM already ends with
         BIN_SUFFIX, PROGRAM will remain unchanged.
         """),
 
+    'CPP_SOURCES': (list, list, [],
+        """C++ source file list.
+
+        This is a list of C++ files to be compiled. Entries must be files that
+        exist. These generally have .cpp, .cc, or .cxx extensions.
+        """),
+
     # IDL Generation.
     'XPIDL_SOURCES': (StrictOrderingOnAppendList, list, [],
         """XPCOM Interface Definition Files (xpidl).
 
         This is a list of files that define XPCOM interface definitions.
         Entries must be files that exist. Entries are almost certainly .idl
         files.
         """),