4 # This rules file has 2 streams, the build-debian-devel stream builds
5 # the static library and the bulid-debian-release builds the dynamic
8 # Uncomment this to turn on verbose mode.
11 DEB_HOST_MULTIARCH ?
= $(shell dpkg-architecture
-qDEB_HOST_MULTIARCH
)
12 TEST_TMPDIR
:= $(CURDIR
)/tmp-test
13 export DEB_BUILD_MAINT_OPTIONS
= hardening
=+all
14 DPKG_EXPORT_BUILDFLAGS
= 1
15 include /usr
/share
/dpkg
/buildflags.mk
17 override_dh_auto_configure
:
18 dh_auto_configure
--builddirectory
=build-debian-release
-- \
19 -DCMAKE_BUILD_TYPE
:STRING
=RelWithDebInfo \
20 -DUSE_OPENSSL
:BOOL
=OFF \
22 -DCERT_LOCATION
=/etc
/ssl
/certs
/ca-certificates.crt \
23 -DUSE_CURL_SSL
:BOOL
=ON \
24 -DUSE_GSSAPI
:BOOL
=ON \
25 -DTHREADSAFE
:BOOL
=ON \
26 -DBUILD_CLAR
:BOOL
=ON \
27 -DUSE_NTLMCLIENT
=OFF \
28 -DUSE_HTTP_PARSER
=system \
29 -DLIB_INSTALL_DIR
:STRING
=lib
/$(DEB_HOST_MULTIARCH
)
31 dh_auto_configure
--builddirectory
=build-debian-devel
-- \
32 -DCMAKE_BUILD_TYPE
:STRING
=Release \
33 -DTHREADSAFE
:BOOL
=ON \
35 -DCERT_LOCATION
=/etc
/ssl
/certs
/ca-certificates.crt \
36 -DUSE_CURL_SSL
:BOOL
=ON \
37 -DUSE_GSSAPI
:BOOL
=ON \
38 -DBUILD_CLAR
:BOOL
=OFF \
39 -DBUILD_SHARED_LIBS
:BOOL
=OFF \
40 -DUSE_NTLMCLIENT
=OFF \
41 -DUSE_HTTP_PARSER
=system \
42 -DLIB_INSTALL_DIR
:STRING
=lib
/$(DEB_HOST_MULTIARCH
)
45 override_dh_makeshlibs
:
48 override_dh_auto_build
:
49 dh_auto_build
--builddirectory
=build-debian-release
50 dh_auto_build
--builddirectory
=build-debian-devel
52 override_dh_auto_install
:
53 dh_auto_install
--builddirectory
=build-debian-release
54 dh_auto_install
--builddirectory
=build-debian-devel
56 override_dh_auto_test
:
57 mkdir
-p build-debian-release
/tmp
58 dh_auto_test
--builddirectory
=build-debian-release
59 mkdir
-p build-debian-devel
/tmp
60 dh_auto_test
--builddirectory
=build-debian-devel
63 dh_strip
--dbgsym-migration
='libgit2-dbg (<< 0.26.0+dfsg.1-1~)'
65 override_dh_installexamples
:
66 dh_installexamples
--exclude .gitignore
69 dh
$@
--buildsystem cmake
--dbgsym-migration
='libgit2-dbg (<< 0.26.0+dfsg.1-1~)' --builddirectory
=build-debian-release
70 dh
$@
--buildsystem cmake
--builddirectory
=build-debian-devel