| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
include /usr/share/dpkg/default.mk |
| 7 |
SONAME := $(shell echo $(DEB_VERSION_UPSTREAM) | cut -d "." -f1,2) |
| 8 |
|
| 9 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ |
| 13 |
|
| 14 |
override_dh_auto_clean: |
| 15 |
dh_auto_clean |
| 16 |
rm -rf html latex |
| 17 |
|
| 18 |
override_dh_auto_configure: |
| 19 |
dh_auto_configure -- -DCPPREST_EXPORT_DIR=cmake/cpprestsdk -DCPPREST_EXCLUDE_BROTLI=OFF -DWERROR=OFF |
| 20 |
|
| 21 |
override_dh_auto_build-indep: |
| 22 |
dh_auto_build |
| 23 |
doxygen Release/public_apis_doxyfile |
| 24 |
|
| 25 |
override_dh_install-indep: |
| 26 |
dh_install -plibcpprest-doc html/* usr/share/doc/libcpprest-doc/html |
| 27 |
|
| 28 |
override_dh_auto_test: |
| 29 |
ifeq ($(DEB_HOST_ARCH_ENDIAN),little) |
| 30 |
if [ -f obj-*/Release/Binaries/test_runner ]; then dh_auto_test; fi |
| 31 |
endif |