#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all # Possible overlinkage in the library. export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed BUILD_OPTIONS = -DBUILD_SHARED_LIBS=ON \ -DOPTION_SELF_CONTAINED=OFF \ -DOPTION_BUILD_EXAMPLES=OFF \ -DOPTION_ERRORS_AS_EXCEPTION=OFF ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) BUILD_OPTIONS += -DOPTION_BUILD_TESTS=ON else BUILD_OPTIONS += -DOPTION_BUILD_TESTS=OFF endif %: dh $@ --buildsystem=cmake override_dh_auto_configure-arch: dh_auto_configure -- $(BUILD_OPTIONS) -DOPTION_BUILD_DOCS=OFF override_dh_auto_configure-indep: ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES))) dh_auto_configure -- $(BUILD_OPTIONS) -DOPTION_BUILD_DOCS=ON endif override_dh_installdocs-indep: dh_installdocs --indep ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES))) dh_doxygen --indep endif