Debian Codegraph @

debian/rules

raw symbols SCIP
1 #! /usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all, optimize=+lto
6
7 export DEB_CFLAGS_MAINT_APPEND += -fvisibility=hidden -fvisibility-inlines-hidden
8 export DEB_CXXFLAGS_MAINT_APPEND += -fvisibility=hidden -fvisibility-inlines-hidden
9
10 # Build with NDEBUG (i.e. no debug messages) unless noopt build was requested
11 ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
12 export DEB_CFLAGS_MAINT_APPEND += -DNDEBUG
13 export DEB_CXXFLAGS_MAINT_APPEND += -DNDEBUG
14 endif
15
16 DH_AUTO_ARGS = --buildsystem=cmake --builddirectory=builddir
17
18 override_dh_auto_configure:
19 dh_auto_configure $(DH_AUTO_ARGS) -- \
20 -DCMAKE_USE_RELATIVE_PATHS=ON -DWITH_ASF=ON -DWITH_MP4=ON \
21 -DBUILD_SHARED_LIBS=ON \
22 -DBUILD_TESTING=ON \
23 -DVISIBILITY_HIDDEN=ON \
24 $(NULL)
25
26 override_dh_installchangelogs:
27 dh_installchangelogs CHANGELOG.md
28
29 override_dh_installdocs:
30 dh_installdocs -X '*.md5'
31
32 # Generate docs when building indep
33 execute_after_dh_auto_build-indep:
34 # build-indep gets invoked in buildds as well...
35 if [ -x /usr/bin/doxygen ]; then \
36 dh_auto_build --buildsystem=makefile --builddirectory=builddir -- docs; \
37 rm builddir/doc/html/jquery.js; \
38 ln -s /usr/share/javascript/jquery/jquery.js builddir/doc/html; \
39 fi
40
41 # All-in-one default dh rule
42 %:
43 dh $@ $(DH_AUTO_ARGS)