Skip to content

Commit

Permalink
bug 872086: move SIMPLE_PROGRAMS to moz.build (file batch #1) r=mshal
Browse files Browse the repository at this point in the history
UltraBlame original commit: fa6b60d827d4795c00be982b2d26f014e110f66d
  • Loading branch information
marco-c committed Sep 29, 2019
1 parent ee254ca commit 0f53e4b
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 8 deletions.
5 changes: 5 additions & 0 deletions intl/uconv/tools/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
CSRCS += [
'umaptable.c',
]

bin_suffix = CONFIG['BIN_SUFFIX']
SIMPLE_PROGRAMS += [
"%s%s" % (fyl[0:-2], bin_suffix) for fyl in CSRCS
]
2 changes: 1 addition & 1 deletion intl/unicharutil/tests/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ include $(DEPTH)/config/autoconf.mk

USE_STATIC_LIBS = 1

SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
DISABLE_SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))

LIBS = \
$(XPCOM_STATICRUNTIME_GLUE_LDOPTS) \
Expand Down
5 changes: 5 additions & 0 deletions intl/unicharutil/tests/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ CPP_SOURCES += [
'NormalizationTest.cpp',
'UnicharSelfTest.cpp',
]

bin_suffix = CONFIG['BIN_SUFFIX']
SIMPLE_PROGRAMS += [
"%s%s" % (fyl[0:-4], bin_suffix) for fyl in CPP_SOURCES
]
2 changes: 1 addition & 1 deletion netwerk/test/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cppsrcs = \
TestProtocols.cpp \
$(NULL)

SIMPLE_PROGRAMS := $(cppsrcs:.cpp=$(BIN_SUFFIX))
DISABLED_SIMPLE_PROGRAMS := $(cppsrcs:.cpp=$(BIN_SUFFIX))

# XXX Make this work in libxul builds.
#SIMPLE_PROGRAMS += \
Expand Down
5 changes: 5 additions & 0 deletions netwerk/test/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ CPP_SOURCES += [
'TestUpload.cpp',
'urltest.cpp',
]

bin_suffix = CONFIG['BIN_SUFFIX']
SIMPLE_PROGRAMS += [
"%s%s" % (x[0:-4], bin_suffix) for x in CPP_SOURCES
]
2 changes: 1 addition & 1 deletion tools/codesighs/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DISABLED_CSRCS += \
$(NULL)
endif

SIMPLE_PROGRAMS = $(CSRCS:.c=$(BIN_SUFFIX))
DISABLED_SIMPLE_PROGRAMS = $(CSRCS:.c=$(BIN_SUFFIX))

include $(topsrcdir)/config/config.mk

Expand Down
5 changes: 5 additions & 0 deletions tools/codesighs/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ else:
CSRCS += [
'nm2tsv.c',
]

bin_suffix = CONFIG['BIN_SUFFIX']
SIMPLE_PROGRAMS += [
"%s%s" % (x[0:-2], bin_suffix) for x in CSRCS
]
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/test/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

SIMPLE_PROGRAMS = stub_test
DISABLED_SIMPLE_PROGRAMS = stub_test

include $(topsrcdir)/config/rules.mk

3 changes: 3 additions & 0 deletions xpcom/reflect/xptcall/src/md/test/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ CPP_SOURCES += [
'stub_test.cpp',
]

SIMPLE_PROGRAMS += [
'stub_test',
]
2 changes: 1 addition & 1 deletion xpcom/reflect/xptinfo/tests/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

SIMPLE_PROGRAMS = TestInterfaceInfo$(BIN_SUFFIX)
DISABLED_SIMPLE_PROGRAMS = TestInterfaceInfo$(BIN_SUFFIX)

LIBS = \
$(XPCOM_GLUE_LDOPTS) \
Expand Down
3 changes: 3 additions & 0 deletions xpcom/reflect/xptinfo/tests/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ CPP_SOURCES += [
'TestInterfaceInfo.cpp',
]

SIMPLE_PROGRAMS += [
"TestInterfaceInfo%s" % (CONFIG['BIN_SUFFIX']),
]
2 changes: 1 addition & 1 deletion xpcom/sample/program/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk

# SIMPLE_PROGRAMS compiles a single .cpp file into an executable
SIMPLE_PROGRAMS = nsTestSample$(BIN_SUFFIX)
DISABLED_SIMPLE_PROGRAMS = nsTestSample$(BIN_SUFFIX)

# LIBS specifies linker flags when building an executable program from
# this Makefile. We link against the "standalone glue" which does not require
Expand Down
4 changes: 4 additions & 0 deletions xpcom/sample/program/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ CPP_SOURCES += [
'nsTestSample.cpp',
]

# SIMPLE_PROGRAMS compiles a single .cpp file into an executable
SIMPLE_PROGRAMS += [
"nsTestSample%s" % (CONFIG['BIN_SUFFIX']),
]
2 changes: 1 addition & 1 deletion xpcom/typelib/xpt/tests/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

SIMPLE_PROGRAMS = PrimitiveTest$(BIN_SUFFIX) SimpleTypeLib$(BIN_SUFFIX)
DISABLED_SIMPLE_PROGRAMS = PrimitiveTest$(BIN_SUFFIX) SimpleTypeLib$(BIN_SUFFIX)

CSRCS = PrimitiveTest.c SimpleTypeLib.c

Expand Down
6 changes: 6 additions & 0 deletions xpcom/typelib/xpt/tests/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@

MODULE = 'xpcom'

bin_suffix = CONFIG['BIN_SUFFIX']
SIMPLE_PROGRAMS += [
"PrimitiveTest%s" % (bin_suffix),
"SimpleTypeLib%s" % (bin_suffix),
]

2 changes: 1 addition & 1 deletion xpcom/windbgdlg/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

SIMPLE_PROGRAMS = windbgdlg$(BIN_SUFFIX)
DISABLED_SIMPLE_PROGRAMS = windbgdlg$(BIN_SUFFIX)

MOZ_WINCONSOLE = 0
include $(topsrcdir)/config/rules.mk
Expand Down
3 changes: 3 additions & 0 deletions xpcom/windbgdlg/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ CPP_SOURCES += [
'windbgdlg.cpp',
]

SIMPLE_PROGRAMS += [
"windbgdlg%s" % (CONFIG['BIN_SUFFIX'])
]

0 comments on commit 0f53e4b

Please sign in to comment.