]> git.proxmox.com Git - libgit2.git/blame - debian/rules
Merge https://salsa.debian.org/debian/libgit2 into proxmox/bullseye
[libgit2.git] / debian / rules
CommitLineData
7618a9d9
RS
1#!/usr/bin/make -f
2# -*- makefile -*-
7618a9d9 3
c2cf9f38 4# This rules file has 2 streams, the build-debian-devel stream builds
8543552c 5# the static library and the build-debian-release builds the dynamic
c2cf9f38
RS
6# library.
7
7618a9d9
RS
8# Uncomment this to turn on verbose mode.
9#export DH_VERBOSE=1
10
27a99ed5 11export DEB_BUILD_MAINT_OPTIONS = hardening=+all
b06de9b0 12
8543552c
TR
13BUILD_TESTS = $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON)
14COMMON_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 \
5407dbe8 20 -DREGEX_BACKEND=pcre2 \
8543552c
TR
21 -DUSE_GSSAPI=ON \
22 -DUSE_HTTPS=mbedTLS \
23 -DUSE_HTTP_PARSER=system \
55c6eb8b
TR
24 -DUSE_NTLMCLIENT=OFF \
25 -DUSE_SSH=ON
c2cf9f38 26
a62d294c 27
5ba40da8
TR
28# The stat() in the Git fs layer has some issues
29export GITTEST_FLAKY_STAT = true
30
8543552c
TR
31%:
32 dh $@ --buildsystem=cmake
45adeafb 33
8543552c
TR
34override_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)
f00d1952 41
c7d01cbc 42override_dh_auto_build:
f00d1952 43 dh_auto_build --builddirectory=build-debian-devel
8543552c 44 dh_auto_build --builddirectory=build-debian-release
f00d1952 45
c7d01cbc 46override_dh_auto_install:
f00d1952 47 dh_auto_install --builddirectory=build-debian-devel
8543552c 48 dh_auto_install --builddirectory=build-debian-release
961e6c53 49
c7d01cbc 50override_dh_auto_test:
bee58334 51 dh_auto_test --builddirectory=build-debian-devel
8543552c 52 dh_auto_test --builddirectory=build-debian-release
c7d01cbc 53