Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 # nanopb headers are in /usr/include/nanopb, but generated msg.pb.h
6 # header includes <pb.h>
7 export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/nanopb
8
9 # fix build with FORTIFY_SOURCE level 3
10 # https://github.com/cxong/cdogs-sdl/issues/838
11 export DEB_CFLAGS_MAINT_APPEND = -finline-limit=1000 -Wno-stringop-truncation
12
13 %:
14 dh $@
15
16 src/proto/msg.pb.c src/proto/msg.pb.h &: src/proto/msg.proto
17 cd src/proto && protoc --nanopb_out=. msg.proto
18
19 override_dh_auto_configure: src/proto/msg.pb.c src/proto/msg.pb.h
20 dh_auto_configure -- \
21 -DCDOGS_BIN_DIR=/usr/games \
22 -DCDOGS_DATA_DIR=/usr/share/games/cdogs-sdl/ \
23 -DUSE_SHARED_ENET=ON \
24 -DDEBUG=ON \
25 -DBUILD_EDITOR=OFF
26
27 execute_before_dh_installdocs:
28 rm -r $(CURDIR)/debian/tmp/usr/doc
29
30 execute_before_dh_install:
31 find $(CURDIR)/debian/tmp -type f '(' -iname "LICENSE.md" -o -iname "README.md" -o -name "*.sh" ')' -delete
32 # delete txt files (containing only license/copyright information), except a few important ones
33 find $(CURDIR)/debian/tmp -type f '(' -name "*.txt" -a '!' \
34 '(' -name 'gamecontroller*db.txt' -o -name 'prefixes.txt' -o -name 'suffix*.txt' ')' ')' -delete
35
36 override_dh_gencontrol:
37 dh_gencontrol -- -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W "libnanopb-dev")"
38
39 override_dh_auto_test:
40 dh_auto_test --no-parallel