Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 #export DH_VERBOSE=1
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 include /usr/share/dpkg/architecture.mk
6
7 %:
8 dh $@ --buildsystem=cmake
9
10
11 ifeq (,$(filter $(DEB_HOST_ARCH), ppc64el))
12 BULLET2_MULTITHREADING := -DBULLET2_MULTITHREADING=on
13 else
14 BULLET2_MULTITHREADING :=
15 endif
16
17 CONFIGURE_FLAGS := \
18 -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
19 -DBUILD_SHARED_LIBS=on \
20 -DBUILD_EXTRAS=on $(BULLET2_MULTITHREADING) \
21 -DBUILD_BULLET2_DEMOS=off \
22 -DBUILD_OPENGL3_DEMOS=off \
23 -DBUILD_CPU_DEMOS=off \
24 -DBUILD_UNIT_TESTS=off \
25 -DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF \
26 -DBUILD_BULLET_ROBOTICS_EXTRA=OFF \
27 -DBUILD_OBJ2SDF_EXTRA=OFF \
28 -DINSTALL_LIBS=on \
29 -DINSTALL_EXTRA_LIBS=on \
30 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
31 -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH)
32
33 override_dh_auto_configure:
34 dh_auto_configure -Bbuild-float32 -- \
35 -DUSE_DOUBLE_PRECISION=off \
36 $(CONFIGURE_FLAGS)
37 dh_auto_configure -Bbuild-float64 -- \
38 -DUSE_DOUBLE_PRECISION=on \
39 $(CONFIGURE_FLAGS)
40
41 override_dh_auto_build-arch:
42 dh_auto_build -Bbuild-float32
43 dh_auto_build -Bbuild-float64
44 override_dh_auto_test:
45 dh_auto_test -Bbuild-float32
46 dh_auto_test -Bbuild-float64
47
48 # Libraries are namespaced, and headers are identical, so install everything to
49 # the same place
50 override_dh_auto_install-arch:
51 dh_auto_install -Bbuild-float32
52 dh_auto_install -Bbuild-float64
53
54 override_dh_auto_install-indep:
55 # Let dh_install handle the installation of documentation files. Do not run
56 # dh_auto_install to prevent a FTBFS because we don't build any
57 # libraries here.
58
59 override_dh_auto_build-indep:
60 # Build the documentation without TIMESTAMPS and make the build
61 # reproducible
62 ( cat Doxyfile ; echo "HTML_TIMESTAMP=NO" ) | doxygen -
63 $(RM) -v html/*.md5 html/*.map
64 # De-duplication (http://wiki.debian.org/dedup.debian.net):
65 rdfind -outputname /dev/null -makesymlinks true html
66 symlinks -rsc html
67
68 override_dh_compress:
69 dh_compress --exclude=.pdf
70
71 execute_after_dh_clean:
72 $(RM) doxygen_sqlite3.db
73 $(RM) -r html
74 $(RM) -r build-float32
75 $(RM) -r build-float64
76