]> git.proxmox.com Git - libgit2.git/blob - debian/rules
Clean up d/rules
[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 -DUSE_GSSAPI=ON \
21 -DUSE_HTTPS=mbedTLS \
22 -DUSE_HTTP_PARSER=system \
23 -DUSE_NTLMCLIENT=OFF
24
25
26 %:
27 dh $@ --buildsystem=cmake
28
29 override_dh_auto_configure:
30 dh_auto_configure --builddirectory=build-debian-devel -- \
31 -DBUILD_SHARED_LIBS=OFF \
32 $(COMMON_CMAKE_FLAGS)
33 dh_auto_configure --builddirectory=build-debian-release -- \
34 -DBUILD_SHARED_LIBS=ON \
35 $(COMMON_CMAKE_FLAGS)
36
37 override_dh_auto_build:
38 dh_auto_build --builddirectory=build-debian-devel
39 dh_auto_build --builddirectory=build-debian-release
40
41 override_dh_auto_install:
42 dh_auto_install --builddirectory=build-debian-devel
43 dh_auto_install --builddirectory=build-debian-release
44
45 override_dh_auto_test:
46 dh_auto_test --builddirectory=build-debian-devel
47 dh_auto_test --builddirectory=build-debian-release
48