2015-07-02 07:06:05 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
export DH_VERBOSE=1
|
2024-05-17 15:40:07 +00:00
|
|
|
# The LTO profile sets CFLAGS/CXXFLAGS which confuse the compilation process; disable it
|
|
|
|
# LTO is still performed by rustc based on Cargo.toml
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
|
2015-07-02 07:06:05 +00:00
|
|
|
|
|
|
|
%:
|
2018-03-04 15:07:33 +00:00
|
|
|
dh $@
|
|
|
|
|
2020-02-16 12:58:27 +00:00
|
|
|
# Setting the build system is still required, because otherwise the GNUmakefile gets picked up
|
2018-03-04 15:07:33 +00:00
|
|
|
override_dh_auto_configure:
|
2024-04-27 10:05:16 +00:00
|
|
|
ln -s cargo-vendor/vendor vendor
|
|
|
|
ln -s cargo-vendor/.cargo .cargo
|
|
|
|
dh_auto_configure --buildsystem=cmake -- -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
|
|
|
|
override_dh_clean:
|
|
|
|
dh_clean
|
|
|
|
-unlink .cargo
|
|
|
|
-unlink vendor
|