summaryrefslogtreecommitdiffstats
path: root/test/module.defs
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-10-04 16:54:02 +0000
committerjstebbins <[email protected]>2012-10-04 16:54:02 +0000
commit657a2ce1106c975f15d1bde54dda386c15d51db2 (patch)
tree788d95c0bf0f24bc8a10e2c2f9577e6cedbff35a /test/module.defs
parent4228b01470a3f5d8798bce4aaad28d8481497911 (diff)
Fix mingw build problems
If the mingw environment has duplicates of some of the contrib libraries that we build, the mingw system lib or header was being used instead of our contrib version. Also, some dependencies were missing which would cause parallel builds to randomly fail because a necessary contrib hadn't been built yet. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5000 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/module.defs')
-rw-r--r--test/module.defs45
1 files changed, 11 insertions, 34 deletions
diff --git a/test/module.defs b/test/module.defs
index 699007ebe..5f825e3a7 100644
--- a/test/module.defs
+++ b/test/module.defs
@@ -9,34 +9,17 @@ TEST.c.o = $(patsubst $(SRC/)%.c,$(BUILD/)%.o,$(TEST.c))
TEST.exe = $(BUILD/)$(call TARGET.exe,$(HB.name)CLI)
-TEST.libs = $(LIBHB.a) $(foreach n, \
- a52 ass avcodec avformat avutil avresample dvdnav dvdread faac fontconfig freetype mkv mpeg2 mp3lame mp4v2 \
- ogg samplerate swscale theora vorbis vorbisenc x264 xml2 bluray, \
- $(CONTRIB.build/)lib/lib$(n).a )
+TEST.GCC.L = $(CONTRIB.build/)lib
-TEST.install.exe = $(DESTDIR)$(PREFIX/)bin/$(notdir $(TEST.exe))
+TEST.libs = $(LIBHB.a)
-ifeq (1,$(PTHREADW32.enabled))
- TEST.libs += $(CONTRIB.build/)lib/libpthreadGC2.a
-endif
-ifeq (1,$(LIBICONV.enabled))
- TEST.libs += $(CONTRIB.build/)lib/libiconv.a
-endif
-ifeq (1,$(BZIP2.enabled))
- TEST.libs += $(CONTRIB.build/)lib/libbz2.a
-else
- TEST.GCC.l += bz2
-endif
-ifeq (1,$(ZLIB.enabled))
- TEST.libs += $(CONTRIB.build/)lib/libz.a
-else
- TEST.GCC.l += z
-endif
-ifeq (1,$(FRIBIDI.enabled))
- TEST.libs += $(CONTRIB.build/)lib/libfribidi.a
-else
- TEST.GCC.l += fribidi
-endif
+TEST.GCC.l = \
+ a52 ass avcodec avformat avutil avresample dvdnav dvdread faac \
+ fontconfig freetype fribidi mkv mpeg2 mp3lame mp4v2 ogg \
+ samplerate swscale theoraenc theoradec vorbis vorbisenc x264 \
+ xml2 bluray bz2 z
+
+TEST.install.exe = $(DESTDIR)$(PREFIX/)bin/$(notdir $(TEST.exe))
###############################################################################
@@ -56,18 +39,12 @@ ifeq ($(BUILD.system),darwin)
else ifeq ($(BUILD.system),linux)
TEST.GCC.l += pthread dl m
else ifeq ($(BUILD.system),solaris)
- TEST.GCC.l += pthread nsl socket
+ TEST.GCC.l += pthread nsl socket iconv
else ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
-ifeq ($(HAS.iconv),1)
- TEST.GCC.l += iconv
-endif
-ifeq ($(HAS.pthread),1)
- TEST.GCC.l += pthreadGC2
-endif
ifeq ($(HAS.dlfcn),1)
TEST.GCC.l += dl
endif
+ TEST.GCC.l += pthreadGC2 iconv ws2_32
TEST.GCC.D += PTW32_STATIC_LIB
- TEST.GCC.l += ws2_32
TEST.GCC.args.extra.exe++ += -static
endif