bug 872087: move HOST_LIBRARY to moz.build (logic) r=ted

This commit is contained in:
Joey Armstrong 2013-06-07 17:00:19 -04:00
parent 4ed98b9610
commit a772126bdd
6 changed files with 13 additions and 0 deletions

View File

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

View File

@ -119,6 +119,10 @@ VARIABLES = {
likely go away.
"""),
'HOST_LIBRARY_NAME': (unicode, unicode, "",
"""Name of target library generated when cross compiling.
"""),
'SIMPLE_PROGRAMS': (StrictOrderingOnAppendList, list, [],
"""Generate a list of binaries from source.

View File

@ -14,6 +14,8 @@ EXTRA_COMPONENTS = ['bar.js', 'foo.js']
HOST_CSRCS = ['bar.c', 'foo.c']
HOST_LIBRARY_NAME = 'host_bar'
SIMPLE_PROGRAMS = ['bar.x', 'foo.x']
CSRCS += ['bar.c', 'foo.c']

View File

@ -162,6 +162,9 @@ class TestRecursiveMakeBackend(BackendTester):
'HOST_CSRCS += bar.c',
'HOST_CSRCS += foo.c',
],
'HOST_LIBRARY_NAME': [
'HOST_LIBRARY_NAME := host_bar',
],
'SIMPLE_PROGRAMS': [
'SIMPLE_PROGRAMS += bar.x',
'SIMPLE_PROGRAMS += foo.x',

View File

@ -14,6 +14,8 @@ EXTRA_COMPONENTS=['fans.js', 'tans.js']
HOST_CSRCS += ['fans.c', 'tans.c']
HOST_LIBRARY_NAME = 'host_fans'
SIMPLE_PROGRAMS += ['fans.x', 'tans.x']
CSRCS += ['fans.c', 'tans.c']

View File

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