4 # This rules file has 2 streams, the build-debian-devel stream builds
5 # the static library and the build-debian-release builds the dynamic
8 # Uncomment this to turn on verbose mode.
11 export DEB_BUILD_MAINT_OPTIONS
= hardening
=+all
13 BUILD_TESTS
= $(if
$(filter nocheck
,$(DEB_BUILD_OPTIONS
)),OFF
,ON
)
14 COMMON_CMAKE_FLAGS
= \
16 -DBUILD_TESTS
=$(BUILD_TESTS
) \
17 -DCERT_LOCATION
=/etc
/ssl
/certs
/ca-certificates.crt \
18 -DDISABLE_ONLINE_TESTS
=ON \
19 -DENABLE_REPRODUCIBLE_BUILDS
=ON \
22 -DUSE_HTTP_PARSER
=system \
27 dh
$@
--buildsystem
=cmake
29 override_dh_auto_configure
:
30 dh_auto_configure
--builddirectory
=build-debian-devel
-- \
31 -DBUILD_SHARED_LIBS
=OFF \
33 dh_auto_configure
--builddirectory
=build-debian-release
-- \
34 -DBUILD_SHARED_LIBS
=ON \
37 override_dh_auto_build
:
38 dh_auto_build
--builddirectory
=build-debian-devel
39 dh_auto_build
--builddirectory
=build-debian-release
41 override_dh_auto_install
:
42 dh_auto_install
--builddirectory
=build-debian-devel
43 dh_auto_install
--builddirectory
=build-debian-release
45 override_dh_auto_test
:
46 dh_auto_test
--builddirectory
=build-debian-devel
47 dh_auto_test
--builddirectory
=build-debian-release