OSDN Git Service

bump ffmpeg from git-185a155 to git-0b32da9
[handbrake-jp/handbrake-jp-git.git] / test / module.defs
1 $(eval $(call import.MODULE.defs,TEST,test,LIBHB))
2 $(eval $(call import.GCC,TEST))
3
4 TEST.src/   = $(SRC/)test/
5 TEST.build/ = $(BUILD/)test/
6
7 TEST.c   = $(wildcard $(TEST.src/)*.c)
8 TEST.c.o = $(patsubst $(SRC/)%.c,$(BUILD/)%.o,$(TEST.c))
9
10 TEST.exe = $(BUILD/)$(call TARGET.exe,$(HB.name)CLI)
11
12 TEST.libs = $(LIBHB.a) $(foreach n, \
13         a52 ass avcodec avformat avutil dca dvdnav dvdread faac fontconfig freetype mkv mpeg2 mp3lame mp4v2 \
14         ogg samplerate swscale theora vorbis vorbisenc x264 xml2 bluray, \
15         $(CONTRIB.build/)lib/lib$(n).a )
16
17 TEST.install.exe = $(DESTDIR)$(PREFIX/)bin/$(notdir $(TEST.exe))
18
19 ifeq (1,$(PTHREADW32.enabled))
20     TEST.libs += $(CONTRIB.build/)lib/libpthreadGC2.a
21 endif
22 ifeq (1,$(LIBICONV.enabled))
23     TEST.libs += $(CONTRIB.build/)lib/libiconv.a
24 endif
25 ifeq (1,$(BZIP2.enabled))
26     TEST.libs += $(CONTRIB.build/)lib/libbz2.a
27 else
28         TEST.GCC.l += bz2
29 endif
30 ifeq (1,$(ZLIB.enabled))
31     TEST.libs += $(CONTRIB.build/)lib/libz.a
32 else
33         TEST.GCC.l += z
34 endif
35
36 ###############################################################################
37
38 TEST.out += $(TEST.c.o)
39 TEST.out += $(TEST.exe)
40
41 BUILD.out += $(TEST.out)
42 BUILD.out += $(TEST.install.exe)
43
44 ###############################################################################
45
46 TEST.GCC.I += $(LIBHB.GCC.I)
47
48 ifeq ($(BUILD.system),darwin)
49     TEST.GCC.f += IOKit CoreServices AudioToolbox
50     TEST.GCC.l += iconv
51 else ifeq ($(BUILD.system),linux)
52     TEST.GCC.l += pthread dl m
53 else ifeq ($(BUILD.system),solaris)
54     TEST.GCC.l += pthread nsl socket
55 else ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
56 ifeq ($(HAS.iconv),1)
57     TEST.GCC.l += iconv
58 endif
59 ifeq ($(HAS.pthread),1)
60     TEST.GCC.l += pthreadGC2
61 endif
62 ifeq ($(HAS.dlfcn),1)
63     TEST.GCC.l += dl
64 endif
65     TEST.GCC.D += PTW32_STATIC_LIB
66     TEST.GCC.l += iberty ws2_32
67         TEST.GCC.args.extra.exe++ += -static
68 endif