1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildflags.mk
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
BUILD_TESTS=ON
else
BUILD_TESTS=OFF
endif
export CFLAGS CPPFLAGS LDFLAGS
%:
dh $@ --buildsystem=cmake+ninja --builddirectory=build
override_dh_auto_configure:
dh_auto_configure -- -DMSGPACK_BUILD_TESTS=$(BUILD_TESTS) -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=OFF -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
override_dh_auto_build-indep:
dh_auto_build -- doxygen
override_dh_install-indep:
dh_install -i
override_dh_installdocs-indep:
mkdir -p build/html
dh_installdocs
dh_doxygen
override_dh_link-indep:
dh_link -i
jdupes -rl debian/libmsgpack-c-doc/usr/
override_dh_auto_test-indep:
endif
|