OSDN Git Service

BuildSystem: conversion from jam-based to make-based system.
[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/   = $(PROJECT/)test/
5 TEST.build/ = $(BUILD/)test/
6
7 TEST.c   = $(wildcard $(TEST.src/)*.c)
8 TEST.c.o = $(patsubst $(PROJECT/)%.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 ## add libs from optional modules
18 ifeq (1,$(BZIP2.enabled))
19     TEST.libs += $(CONTRIB.build/)lib/libbz2.a
20 endif
21 ifeq (1,$(ZLIB.enabled))
22     TEST.libs += $(CONTRIB.build/)lib/libz.a
23 endif
24
25 ###############################################################################
26
27 TEST.out += $(TEST.c.o)
28 TEST.out += $(TEST.exe)
29
30 BUILD.out += $(TEST.out)
31
32 ###############################################################################
33
34 TEST.GCC.I += $(LIBHB.GCC.I)
35
36 ifeq ($(BUILD.system),darwin)
37     TEST.GCC.f += IOKit CoreServices
38     TEST.GCC.l += bz2 z
39 else ifeq ($(BUILD.system),linux)
40     TEST.GCC.l += bz2 z pthread dl m
41 endif