]> git.proxmox.com Git - libgit2.git/blob - debian/rules
Switch to PCRE2
[libgit2.git] / debian / rules
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 %:
29 dh $@ --buildsystem=cmake
30
31 override_dh_auto_configure:
32 dh_auto_configure --builddirectory=build-debian-devel -- \
33 -DBUILD_SHARED_LIBS=OFF \
34 $(COMMON_CMAKE_FLAGS)
35 dh_auto_configure --builddirectory=build-debian-release -- \
36 -DBUILD_SHARED_LIBS=ON \
37 $(COMMON_CMAKE_FLAGS)
38
39 override_dh_auto_build:
40 dh_auto_build --builddirectory=build-debian-devel
41 dh_auto_build --builddirectory=build-debian-release
42
43 override_dh_auto_install:
44 dh_auto_install --builddirectory=build-debian-devel
45 dh_auto_install --builddirectory=build-debian-release
46
47 override_dh_auto_test:
48 dh_auto_test --builddirectory=build-debian-devel
49 dh_auto_test --builddirectory=build-debian-release
50