Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 #export DH_VERBOSE=1
4
5 export DEB_BUILD_MAINT_OPTIONS := hardening=+all
6 export DEB_CFLAGS_MAINT_APPEND := -pipe -Wall
7
8 include /usr/share/dpkg/default.mk
9
10 built_binaries := $(shell dh_listpackages)
11
12 confflags := -DSDLTTF_STRICT=ON
13
14 confflags += -DSDLTTF_HARFBUZZ=ON
15 confflags += -DSDLTTF_PLUTOSVG=OFF
16 confflags += -DSDLTTF_VENDORED=OFF
17 confflags += -DSDLTTF_WERROR=OFF
18
19 ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS))$(filter %-tests,$(built_binaries)),nocheck)
20 confflags += -DSDLTTF_TESTS=ON
21 endif
22
23 ifneq ($(filter %-tests,$(built_binaries)),)
24 confflags += -DSDLTTF_SAMPLES=ON
25 confflags += -DSDLTTF_SAMPLES_INSTALL=ON
26 confflags += -DSDLTTF_TESTS_INSTALL=ON
27 endif
28
29 ifneq ($(filter %-doc,$(built_binaries)),)
30 confflags += -DSDLTTF_INSTALL_MAN=ON
31 endif
32
33 %:
34 dh $@ --buildsystem=cmake
35
36 override_dh_auto_configure:
37 cd examples/testgputext/shaders && LC_ALL=C bash -ex $(CURDIR)/debian/build-shaders.sh
38 dh_auto_configure -- $(confflags)
39
40 override_dh_installchangelogs:
41 dh_installchangelogs -- CHANGES.txt
42
43 # debhelper >= 13.4 makes all of /usr/libexec executable, which is not
44 # quite right for installed-tests
45 override_dh_fixperms:
46 dh_fixperms -Xusr/libexec/installed-tests
47 ifneq ($(filter %-tests,$(built_binaries)),)
48 chmod --recursive --changes a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests
49 endif