Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 # Upstream can handle LTO on its own, so disable the flags
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
7
8 %:
9 dh $@ --buildsystem=cmake
10
11 override_dh_auto_configure:
12 dh_auto_configure -- -DGIT_VERSION="$(DEB_VERSION_UPSTREAM)" \
13 -DBUILD_SHARED_LIBS=ON \
14 -DBENCHMARK_ENABLE_LTO=ON \
15 -DBENCHMARK_USE_BUNDLED_GTEST=OFF \
16 -DBENCHMARK_ENABLE_WERROR=OFF
17
18 override_dh_python3:
19 dh_python3 --shebang=/usr/bin/python3 /usr/share/benchmark