Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 include /usr/share/dpkg/architecture.mk
8
9 ifneq (,$(filterscip-debian debian g2o 0~20230806-5 g2o/rules/filter. parallel=%,$(DEB_BUILD_OPTIONSscip-debian debian g2o 0~20230806-5 g2o/rules/DEB_BUILD_OPTIONS.)))
10 NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
11 MAKEFLAGS += -j$(NUMJOBS)
12 endif
13
14 export FORCE_SOURCE_DATEscip-debian debian g2o 0~20230806-5 g2o/rules/FORCE_SOURCE_DATE. = 1
15
16 %scip-debian debian g2o 0~20230806-5 g2o/rules/`%`().:
17 dh $@ --buildsystem=cmake
18
19 override_dh_auto_configure-archscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_configure-arch().:
20 dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- \
21 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
22 -DBUILD_SHARED_LIBS=ON \
23 -DG2O_USE_CHOLMOD=ON \
24 -DG2O_USE_LGPL_LIBS=ON \
25 -DG2O_USE_CSPARSE=ON \
26 -DG2O_USE_OPENMP=OFF \
27 -DG2O_USE_OPENGL=ON \
28 -DG2O_USE_VENDORED_CERES=OFF \
29 -DG2O_BUILD_SLAM2D_TYPES=ON \
30 -DG2O_BUILD_SLAM2D_ADDON_TYPES=ON \
31 -DG2O_BUILD_DATA_TYPES=ON \
32 -DG2O_BUILD_SCLAM2D_TYPES=ON \
33 -DG2O_BUILD_SLAM3D_TYPES=ON \
34 -DG2O_BUILD_SLAM3D_ADDON_TYPES=ON \
35 -DG2O_BUILD_SBA_TYPES=ON \
36 -DG2O_BUILD_ICP_TYPES=ON \
37 -DG2O_BUILD_SIM3_TYPES=ON \
38 -DG2O_BUILD_APPS=ON \
39 -DG2O_BUILD_EXAMPLES=OFF \
40 -DG2O_FAST_MATH=OFF \
41 -DDO_SSE_AUTODETECT=OFF \
42 -DBUILD_CODE_COVERAGE=OFF \
43 -DBUILD_WITH_MARCH_NATIVE=OFF \
44 -DBUILD_UNITTESTS=ON \
45 -DG2O_BUILD_BENCHMARKS=OFF
46
47 override_dh_auto_configure-indepscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_configure-indep().:
48 true
49
50
51 ifeq (,$(filterscip-debian debian g2o 0~20230806-5 g2o/rules/filter. nodoc,$(DEB_BUILD_OPTIONSscip-debian debian g2o 0~20230806-5 g2o/rules/DEB_BUILD_OPTIONS.)))
52
53 override_dh_auto_build-indepscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_build-indep().:
54 $(MAKEscip-debian debian g2o 0~20230806-5 g2o/rules/MAKE.) -C doc g2o.pdf
55 cd doc/doxygen && doxygen doxy.config
56
57 else
58
59 override_dh_auto_build-indepscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_build-indep().:
60 true
61
62 endif
63
64 override_dh_auto_build-archscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_build-arch().:
65 dh_auto_buildscip-debian debian debhelper . dh_auto_build().
66
67
68 override_dh_auto_test-indepscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_test-indep().:
69 true
70
71 override_dh_auto_test-archscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_test-arch().:
72 ifeq (,$(filterscip-debian debian g2o 0~20230806-5 g2o/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian g2o 0~20230806-5 g2o/rules/DEB_BUILD_OPTIONS.)))
73 dh_auto_test
74 else
75 true
76 endif
77
78 # remove files I shouldn't ship
79 override_dh_auto_install-archscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_install-arch().:
80 dh_auto_installscip-debian debian debhelper . dh_auto_install().
81 rm debian/tmp/usr/include/g2o/autodiff/LICENSE
82 sed -i -e 's@^\(#define G2O_SRC_DIR\).*@\1 "/nonexistent"@' debian/tmp/usr/include/g2o/config.h
83
84 override_dh_auto_install-indepscip-debian debian g2o 0~20230806-5 g2o/rules/override_dh_auto_install-indep().:
85 true