104 lines
2.6 KiB
Plaintext
104 lines
2.6 KiB
Plaintext
$(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
|