bug 872086-2: move SIMPLE_PROGRAMS to moz.build (file batch #2) r=mshal

This commit is contained in:
Joey Armstrong 2013-06-13 17:49:21 -04:00
parent 7c48823e90
commit 2616658199
10 changed files with 29 additions and 5 deletions

View File

@ -10,7 +10,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
ifdef MOZ_LINKER
SIMPLE_PROGRAMS := TestZip$(BIN_SUFFIX)
DISABLE_SIMPLE_PROGRAMS := TestZip$(BIN_SUFFIX)
NO_DIST_INSTALL = 1
STL_FLAGS =

View File

@ -8,3 +8,6 @@ if CONFIG['MOZ_LINKER']:
CPP_SOURCES += [
'TestZip.cpp',
]
SIMPLE_PROGRAMS += [
'TestZip%s' % CONFIG['BIN_SUFFIX'],
]

View File

@ -33,7 +33,7 @@ cppsrcs = \
$(NULL)
# TODO: Base off of CPP_SOURCES in moz.build
SIMPLE_PROGRAMS = $(cppsrcs:.cpp=$(BIN_SUFFIX))
DISABLED_SIMPLE_PROGRAMS = $(cppsrcs:.cpp=$(BIN_SUFFIX))
INI_TEST_FILES = \
TestAUSReadStrings1.ini \

View File

@ -12,3 +12,10 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
]
XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini']
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
programs = [
fyl[0:-4] for fyl in CPP_SOURCES
]
programs.sort()
SIMPLE_PROGRAMS += programs

View File

@ -12,7 +12,7 @@ include $(DEPTH)/config/autoconf.mk
FAIL_ON_WARNINGS = 1
SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
DISABLED_SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
include $(topsrcdir)/config/config.mk

View File

@ -17,3 +17,8 @@ if CONFIG['OS_ARCH'] != 'Darwin':
CPP_SOURCES += [
'WriteArgument.cpp',
]
bin_suffix = CONFIG['BIN_SUFFIX']
SIMPLE_PROGRAMS += [
"%s%s" % (fyl[0:-4], bin_suffix) for fyl in CPP_SOURCES
]

View File

@ -41,7 +41,7 @@ cppsrcs += TestSTLWrappers.cpp
endif
# TODO: Use CPPSRCS from moz.build
SIMPLE_PROGRAMS := $(cppsrcs:.cpp=$(BIN_SUFFIX))
DISABLED_SIMPLE_PROGRAMS := $(cppsrcs:.cpp=$(BIN_SUFFIX))
CPP_UNIT_TESTS = \
ShowAlignments.cpp \

View File

@ -9,7 +9,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
DISABLED_SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
include $(topsrcdir)/config/rules.mk

View File

@ -10,3 +10,6 @@ CPP_SOURCES += [
'TestMinStringAPI.cpp',
]
SIMPLE_PROGRAMS += [
fyl[0:-4] for fyl in CPP_SOURCES
]

View File

@ -45,3 +45,9 @@ CPP_SOURCES += [
'TestUnicodeArguments.cpp',
'nsIFileEnumerator.cpp',
]
programs = [
fyl[0:-4] for fyl in CPP_SOURCES
]
programs.sort()
SIMPLE_PROGRAMS += programs