bug 875549: move HOST_CSRCS to moz.build (logic) r=ted

This commit is contained in:
Joey Armstrong 2013-06-06 16:29:57 -04:00
parent e10a91cce0
commit bd9b8237cd
6 changed files with 16 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class TreeMetadataEmitter(object):
CSRCS='CSRCS',
DEFINES='DEFINES',
EXTRA_COMPONENTS='EXTRA_COMPONENTS',
HOST_CSRCS='HOST_CSRCS',
MODULE='MODULE',
SIMPLE_PROGRAMS='SIMPLE_PROGRAMS',
XPIDL_FLAGS='XPIDL_FLAGS',

View File

@ -104,6 +104,12 @@ VARIABLES = {
This variable contains a list of files to copy into $(FINAL_TARGET)/components/.
"""),
'HOST_CSRCS': (StrictOrderingOnAppendList, list, [],
"""C source files to compile with the host compiler.
This variable contains a list of C source files to compile.
"""),
'PARALLEL_DIRS': (list, list, [],
"""A parallel version of DIRS.

View File

@ -12,6 +12,8 @@ DEFINES = ['-Dbar', '-Dfoo']
EXTRA_COMPONENTS = ['bar.js', 'foo.js']
HOST_CSRCS = ['bar.c', 'foo.c']
SIMPLE_PROGRAMS = ['bar.x', 'foo.x']
CSRCS += ['bar.c', 'foo.c']

View File

@ -158,6 +158,10 @@ class TestRecursiveMakeBackend(BackendTester):
'EXTRA_COMPONENTS += bar.js',
'EXTRA_COMPONENTS += foo.js',
],
'HOST_CSRCS': [
'HOST_CSRCS += bar.c',
'HOST_CSRCS += foo.c',
],
'SIMPLE_PROGRAMS': [
'SIMPLE_PROGRAMS += bar.x',
'SIMPLE_PROGRAMS += foo.x',

View File

@ -12,6 +12,8 @@ DEFINES=['-Dfans', '-Dtans']
EXTRA_COMPONENTS=['fans.js', 'tans.js']
HOST_CSRCS += ['fans.c', 'tans.c']
SIMPLE_PROGRAMS += ['fans.x', 'tans.x']
CSRCS += ['fans.c', 'tans.c']

View File

@ -130,6 +130,7 @@ class TestEmitterBasic(unittest.TestCase):
CSRCS=['fans.c', 'tans.c'],
DEFINES=['-Dfans', '-Dtans'],
EXTRA_COMPONENTS=['fans.js', 'tans.js'],
HOST_CSRCS=['fans.c', 'tans.c'],
SIMPLE_PROGRAMS=['fans.x', 'tans.x'],
XPIDLSRCS=['bar.idl', 'biz.idl', 'foo.idl'],
XPIDL_MODULE='module_name',