summaryrefslogtreecommitdiffstats
path: root/make/include/main.defs
blob: 90891664efe1d6cba05c38ff9f4c6caed546b9e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
include $(SRC/)make/include/base.defs
include $(SRC/)make/include/contrib.defs
include $(SRC/)make/include/function.defs
include $(SRC/)make/include/gcc.defs
include $(SRC/)make/include/select.defs
include $(SRC/)make/include/target.defs
include $(SRC/)make/include/tool.defs

###############################################################################

MODULES += contrib/a52dec

ifneq (,$(filter $(BUILD.system),cygwin mingw))
    MODULES += contrib/bzip2
endif

MODULES += contrib/faac
MODULES += contrib/faad2
MODULES += contrib/ffmpeg
MODULES += contrib/lame
MODULES += contrib/libdca
MODULES += contrib/libdvdread
MODULES += contrib/libdvdnav
MODULES += contrib/libmkv
MODULES += contrib/libogg
MODULES += contrib/libsamplerate
MODULES += contrib/libtheora
MODULES += contrib/libvorbis
MODULES += contrib/mp4v2
MODULES += contrib/mpeg2dec

ifneq (,$(filter $(BUILD.system),mingw))
    MODULES += contrib/pthreadw32
endif

MODULES += contrib/x264

ifneq (,$(filter $(BUILD.system),cygwin mingw))
    MODULES += contrib/libiconv
    MODULES += contrib/zlib
endif

## these must come after contrib since some contrib modules are optional
MODULES += libhb

###############################################################################

ifeq (1-darwin,$(FEATURE.xcode)-$(BUILD.system))
    ## use macosx module when xcode+darwin
    MODULES += macosx
else
    ## default is to build CLI
    MODULES += test
endif

ifeq (1-mingw,$(FEATURE.gtk.mingw)-$(BUILD.system))
    MODULES += gtk
endif

ifeq (1-linux,$(FEATURE.gtk)-$(BUILD.system))
    ## build gtk when gtk+linux
    MODULES += gtk
endif

###############################################################################

MODULES += doc
MODULES += pkg

###############################################################################

include $(MODULES:%=$(SRC/)%/module.defs)
include $(SRC/)make/variant/$(BUILD.system).defs
-include $(SRC/)make/variant/$(BUILD.system).$(BUILD.machine).defs