forked from HandBrake/HandBrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.defs
103 lines (82 loc) · 2.58 KB
/
module.defs
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
$(eval $(call import.MODULE.defs,GTK,gtk,LIBHB))
$(eval $(call import.GCC,GTK))
GTK.src/ = $(SRC/)gtk/
GTK.build/ = $(BUILD/)gtk/
GTK.SETUP.stamp = $(GTK.build/)compile_commands.json
GTK.CONFIGURE.stamp = $(GTK.build/)build.ninja
GTK.CONFIGURE.exe = $(MESON.exe)
GTK.CONFIGURE.extra = -Dc_args="$(call fn.ARGS,GTK.GCC,*D ?extra)" \
-Dc_link_args="$(call fn.ARGS,GTK.GCC,?extra.exe) $(GTK.CONFIGURE.libdirs)" \
--pkg-config-path=$(call fn.ABSOLUTE,$(BUILD/))contrib/lib/pkgconfig:$(PKG_CONFIG_PATH) \
--prefix=$(PREFIX) -Dhb-dir=$(call fn.ABSOLUTE,$(BUILD/))
GTK.CONFIGURE.env = CC="$(GCC.gcc)" CXX="$(GCC.gxx)"
###############################################################################
GTK.out += $(GTK.CONFIGURE.stamp)
BUILD.out += $(GTK.out)
###############################################################################
ifneq (none,$(GTK.GCC.g))
GTK.CONFIGURE.extra += -Ddebug=true
else
GTK.CONFIGURE.extra += -Ddebug=false
endif
ifeq (speed,$(GTK.GCC.O))
ifeq (none,$GTK.GCC.g)
GTK.CONFIGURE.extra += -Doptimization=3
else
GTK.CONFIGURE.extra += -Doptimization=2
endif
else
ifneq (,$(filter $(GTK.GCC.O),size size-aggressive))
GTK.CONFIGURE.extra += -Doptimization=s
else
GTK.CONFIGURE.extra += -Doptimization=0
endif
endif
ifeq (on,$(GCC.lto))
GTK.CONFIGURE.extra += -Db_lto=true
else
GTK.CONFIGURE.extra += -Db_lto=false
endif
ifeq (1,$(FEATURE.fdk_aac))
GTK.CONFIGURE.extra += -Dfdk-aac=enabled
else
GTK.CONFIGURE.extra += -Dfdk-aac=disabled
endif
ifeq (1,$(FEATURE.x265))
GTK.CONFIGURE.extra += -Dx265=enabled
else
GTK.CONFIGURE.extra += -Dx265=disabled
endif
ifeq (1,$(FEATURE.numa))
GTK.CONFIGURE.extra += -Dnuma=enabled
else
GTK.CONFIGURE.extra += -Dnuma=disabled
endif
ifeq (1,$(FEATURE.qsv))
GTK.CONFIGURE.extra += -Dqsv=enabled
else
GTK.CONFIGURE.extra += -Dqsv=disabled
endif
ifeq (1,$(FEATURE.libdovi))
GTK.CONFIGURE.extra += -Dlibdovi=enabled
else
GTK.CONFIGURE.extra += -Dlibdovi=disabled
endif
ifeq (1,$(FEATURE.flatpak))
GTK.CONFIGURE.extra += -Dflatpak=true
else
GTK.CONFIGURE.extra += -Dflatpak=false
endif
ifneq (,$(filter $(HOST.system),freebsd netbsd openbsd))
GTK.CONFIGURE.libdirs = -L$(LOCALBASE)/lib
endif
ifeq (mingw,$(HOST.system))
GTK.CONFIGURE.extra += -Dprefer_static=true
endif
ifeq (1,$(HOST.cross))
GTK.CONFIGURE.cross = --cross-file=$(SRC/)make/cross/$(HOST.spec).meson
endif
ifneq (-,$(V)-$(VERBOSE))
GTK.BUILD.extra = -v
endif
export HB.version HB.repo.date