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 39 40
|
#!/usr/bin/make -f
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ENABLE_TESTS=ON
else
ENABLE_TESTS=OFF
endif
ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel powerpc))
export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
endif
%:
dh $@
override_dh_auto_configure-arch:
dh_auto_configure -- -DBUILD_CODE_GEN=ON -DBUILD_TESTS=$(ENABLE_TESTS)
override_dh_auto_test-arch:
-kill -9 $$(cat /tmp/sdbuscpp.pid)
-rm -v /tmp/dbus.conf /tmp/sdbuscpp_bus /tmp/sdbuscpp.pid
sed 's|CURDIR|$(CURDIR)|g' debian/dbus.conf.tpl > /tmp/dbus.conf
dbus-daemon --config-file /tmp/dbus.conf --fork
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/tmp/sdbuscpp_bus dh_auto_test --no-parallel
-kill -9 $$(cat /tmp/sdbuscpp.pid)
-rm -v /tmp/dbus.conf /tmp/sdbuscpp_bus /tmp/sdbuscpp.pid
override_dh_auto_configure-indep:
dh_auto_configure -- -DBUILD_DOXYGEN_DOC=ON
override_dh_auto_build-indep:
dh_auto_build -- doc
override_dh_auto_install-indep:
dh_auto_install -- -C docs
override_dh_auto_test-indep:
|