bug 888009: move HOST_CPPSRCS to mozbuild (logic) r=gps

This commit is contained in:
Joey Armstrong 2013-07-03 08:56:33 -04:00
Родитель 2e279d4626
Коммит 4fad2d476e
6 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -90,6 +90,7 @@ class TreeMetadataEmitter(object):
GTEST_CMMSRCS='GTEST_CMM_SOURCES',
GTEST_CPPSRCS='GTEST_CPP_SOURCES',
GTEST_CSRCS='GTEST_C_SOURCES',
HOST_CPPSRCS='HOST_CPPSRCS',
HOST_CSRCS='HOST_CSRCS',
HOST_LIBRARY_NAME='HOST_LIBRARY_NAME',
JS_MODULES_PATH='JS_MODULES_PATH',

Просмотреть файл

@ -140,6 +140,12 @@ VARIABLES = {
that exist. These generally have .cpp, .cc, or .cxx extensions.
"""),
'HOST_CPPSRCS': (StrictOrderingOnAppendList, list, [],
"""C++ source files to compile with the host compiler.
This variable contains a list of C++ source files to compile.
"""),
'HOST_CSRCS': (StrictOrderingOnAppendList, list, [],
"""C source files to compile with the host compiler.

Просмотреть файл

@ -17,6 +17,7 @@ GTEST_C_SOURCES = ['test1.c', 'test2.c']
GTEST_CMM_SOURCES = ['test1.mm', 'test2.mm']
GTEST_CPP_SOURCES = ['test1.cpp', 'test2.cpp']
HOST_CPPSRCS = ['bar.cpp', 'foo.cpp']
HOST_CSRCS = ['bar.c', 'foo.c']
HOST_LIBRARY_NAME = 'host_bar'

Просмотреть файл

@ -175,6 +175,10 @@ class TestRecursiveMakeBackend(BackendTester):
'GTEST_CSRCS += test1.c',
'GTEST_CSRCS += test2.c',
],
'HOST_CPPSRCS': [
'HOST_CPPSRCS += bar.cpp',
'HOST_CPPSRCS += foo.cpp',
],
'HOST_CSRCS': [
'HOST_CSRCS += bar.c',
'HOST_CSRCS += foo.c',

Просмотреть файл

@ -17,6 +17,7 @@ GTEST_C_SOURCES = ['test1.c', 'test2.c']
GTEST_CMM_SOURCES = ['test1.mm', 'test2.mm']
GTEST_CPP_SOURCES = ['test1.cpp', 'test2.cpp']
HOST_CPPSRCS += ['fans.cpp', 'tans.cpp']
HOST_CSRCS += ['fans.c', 'tans.c']
HOST_LIBRARY_NAME = 'host_fans'

Просмотреть файл

@ -134,6 +134,7 @@ class TestEmitterBasic(unittest.TestCase):
GTEST_CSRCS=['test1.c', 'test2.c'],
GTEST_CMMSRCS=['test1.mm', 'test2.mm'],
GTEST_CPPSRCS=['test1.cpp', 'test2.cpp'],
HOST_CPPSRCS=['fans.cpp', 'tans.cpp'],
HOST_CSRCS=['fans.c', 'tans.c'],
HOST_LIBRARY_NAME='host_fans',
LIBRARY_NAME='lib_name',