OSDN Git Service

BuildSystem: general, configure and Xcode updates.
[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 avcodec avformat avutil dca dvdread faac faad mkv mpeg2 mp3lame mp4v2 \
14         ogg samplerate swscale theora vorbis vorbisenc x264 xvidcore, \
15         $(CONTRIB.build/)lib/lib$(n).a )
16
17 TEST.install.exe = $(PREFIX/)bin/$(notdir $(TEST.exe))
18
19 ## add libs from optional modules
20 ifeq (1,$(BZIP2.enabled))
21     TEST.libs += $(CONTRIB.build/)lib/libbz2.a
22 endif
23 ifeq (1,$(ZLIB.enabled))
24     TEST.libs += $(CONTRIB.build/)lib/libz.a
25 endif
26
27 ###############################################################################
28
29 TEST.out += $(TEST.c.o)
30 TEST.out += $(TEST.exe)
31
32 BUILD.out += $(TEST.out)
33 BUILD.out += $(TEST.install.exe)
34
35 ###############################################################################
36
37 TEST.GCC.I += $(LIBHB.GCC.I)
38
39 ifeq ($(BUILD.system),darwin)
40     TEST.GCC.f += IOKit CoreServices
41     TEST.GCC.l += bz2 z
42 else ifeq ($(BUILD.system),linux)
43     TEST.GCC.l += bz2 z pthread dl m
44 endif