#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+all future=+lfs include /usr/share/dpkg/architecture.mk BUILD_DOC = $(if $(filter nodoc,$(DEB_BUILD_OPTIONS)),OFF,ON) BUILD_TESTS = $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) BAD_TESTS = memory_bounds export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility-inlines-hidden %: dh $@ --buildsystem=cmake --with pkgkde_symbolshelper override_dh_autoreconf: override_dh_auto_configure: [ -n "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ] || \ ./debian/build-snakeoil-certs dh_auto_configure --buildsystem=cmake -- \ -DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) \ -DDOC_INSTALL_DIR=/usr/share/doc/libfastrtps-dev \ -DSECURITY=ON \ -DBUILD_DOCUMENTATION=$(BUILD_DOC) \ -DEPROSIMA_BUILD_TESTS=$(BUILD_TESTS) \ -DGTEST_INDIVIDUAL=ON \ -DDART_TESTING_TIMEOUT=30 override_dh_auto_test: -[ -n "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ] || \ cd obj-$(DEB_HOST_GNU_TYPE) && \ ctest --output-on-failure \ -E "$(BAD_TESTS)" execute_after_dh_auto_install: rm debian/tmp/usr/share/fastrtps/LICENSE mkdir -p debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/fastrtps mv debian/tmp/usr/include/fastrtps/config.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/fastrtps ln -sf /usr/share/javascript/jquery/jquery.min.js debian/tmp/usr/share/doc/libfastrtps-dev/api_reference/jquery.js mv debian/tmp/usr/tools/fastdds debian/tmp/usr/share/fastdds sed -i -e '1 s+^!#.*+#!/usr/bin/python3+' debian/tmp/usr/share/fastdds/fastdds.py rm debian/tmp/usr/bin/fastdds cp debian/ros-discovery.sh debian/tmp/usr/bin/ros-discovery override_dh_installexamples: dh_installexamples -X.gitignore