#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow %: dh $@ --buildsystem=cmake+ninja # avoid downloading external libraries with git O += -D ES_USE_VCPKG=0 # release build includes installation of the endless-sky binary O += -D CMAKE_BUILD_TYPE=Release override_dh_auto_configure: dh_auto_configure --buildsystem=cmake+ninja -- $O execute_after_dh_auto_install: rm -f debian/tmp/usr/share/doc/endless-sky/license.txt ctest_env = \ CTEST_OUTPUT_ON_FAILURE=1 \ SDL_VIDEODRIVER=offscreen \ $(NULL) ctest_options = \ --label-exclude "(benchmark|integration-debug)" \ --timeout 9000 \ $(NULL) ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) ctest_options += --verbose endif override_dh_auto_test: ifneq ($(shell dpkg-architecture -q DEB_BUILD_ARCH),riscv64) ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) env -C obj-$(shell dpkg-architecture -q DEB_BUILD_GNU_TYPE) \ $(ctest_env) \ ctest $(ctest_options) endif endif