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 \
20 -DREGEX_BACKEND
=pcre2 \
23 -DUSE_HTTP_PARSER
=system \
24 -DUSE_NTLMCLIENT
=OFF \
29 dh
$@
--buildsystem
=cmake
31 override_dh_auto_configure
:
32 dh_auto_configure
--builddirectory
=build-debian-devel
-- \
33 -DBUILD_SHARED_LIBS
=OFF \
35 dh_auto_configure
--builddirectory
=build-debian-release
-- \
36 -DBUILD_SHARED_LIBS
=ON \
39 override_dh_auto_build
:
40 dh_auto_build
--builddirectory
=build-debian-devel
41 dh_auto_build
--builddirectory
=build-debian-release
43 override_dh_auto_install
:
44 dh_auto_install
--builddirectory
=build-debian-devel
45 dh_auto_install
--builddirectory
=build-debian-release
47 override_dh_auto_test
:
48 dh_auto_test
--builddirectory
=build-debian-devel
49 dh_auto_test
--builddirectory
=build-debian-release