X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test%2Fmodule.defs;h=cd79c05c0bf704da56ae2727f828d8b0e9ef3c56;hb=ce896720aa80b4bd7002c5d65a24323125e99fd1;hp=234cb1dcfe8f3e16cfce7be9cf83ab21498c2dbc;hpb=ce32291e230fa2ab820ce17c8a5c0cbff3d98e2c;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/test/module.defs b/test/module.defs index 234cb1dc..cd79c05c 100644 --- a/test/module.defs +++ b/test/module.defs @@ -10,18 +10,27 @@ 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 avcodec avformat avutil dca dvdread faac faad mkv mpeg2 mp3lame mp4v2 \ - ogg samplerate swscale theora vorbis vorbisenc x264 xvidcore, \ + a52 avcodec avformat avutil dca dvdnav dvdread faac faad mkv mpeg2 mp3lame mp4v2 \ + ogg samplerate swscale theora vorbis vorbisenc x264 bluray, \ $(CONTRIB.build/)lib/lib$(n).a ) -TEST.install.exe = $(PREFIX/)bin/$(notdir $(TEST.exe)) +TEST.install.exe = $(DESTDIR)$(PREFIX/)bin/$(notdir $(TEST.exe)) -## add libs from optional modules +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 ############################################################################### @@ -37,8 +46,23 @@ BUILD.out += $(TEST.install.exe) TEST.GCC.I += $(LIBHB.GCC.I) ifeq ($(BUILD.system),darwin) - TEST.GCC.f += IOKit CoreServices - TEST.GCC.l += bz2 z + TEST.GCC.f += IOKit CoreServices AudioToolbox + TEST.GCC.l += iconv else ifeq ($(BUILD.system),linux) - TEST.GCC.l += bz2 z pthread dl m + TEST.GCC.l += pthread dl m +else ifeq ($(BUILD.system),solaris) + TEST.GCC.l += pthread nsl socket +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.D += PTW32_STATIC_LIB + TEST.GCC.l += iberty ws2_32 + TEST.GCC.args.extra.exe++ += -static endif