]>
Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/make -f | |
2 | # -*- makefile -*- | |
3 | ||
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 | |
6 | # library. | |
7 | ||
8 | # Uncomment this to turn on verbose mode. | |
9 | #export DH_VERBOSE=1 | |
10 | ||
11 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all | |
12 | ||
13 | BUILD_TESTS = $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) | |
14 | COMMON_CMAKE_FLAGS = \ | |
15 | -DBUILD_CLI=OFF \ | |
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 \ | |
21 | -DUSE_GSSAPI=ON \ | |
22 | -DUSE_HTTPS=mbedTLS \ | |
23 | -DUSE_HTTP_PARSER=system \ | |
24 | -DUSE_NTLMCLIENT=OFF \ | |
25 | -DUSE_SSH=ON | |
26 | ||
27 | ||
28 | # The stat() in the Git fs layer has some issues | |
29 | export GITTEST_FLAKY_STAT = true | |
30 | ||
31 | %: | |
32 | dh $@ --buildsystem=cmake | |
33 | ||
34 | override_dh_auto_configure: | |
35 | dh_auto_configure --builddirectory=build-debian-devel -- \ | |
36 | -DBUILD_SHARED_LIBS=OFF \ | |
37 | $(COMMON_CMAKE_FLAGS) | |
38 | dh_auto_configure --builddirectory=build-debian-release -- \ | |
39 | -DBUILD_SHARED_LIBS=ON \ | |
40 | $(COMMON_CMAKE_FLAGS) | |
41 | ||
42 | override_dh_auto_build: | |
43 | dh_auto_build --builddirectory=build-debian-devel | |
44 | dh_auto_build --builddirectory=build-debian-release | |
45 | ||
46 | override_dh_auto_install: | |
47 | dh_auto_install --builddirectory=build-debian-devel | |
48 | dh_auto_install --builddirectory=build-debian-release | |
49 | ||
50 | override_dh_auto_test: | |
51 | dh_auto_test --builddirectory=build-debian-devel | |
52 | dh_auto_test --builddirectory=build-debian-release | |
53 |