2015-07-02 15:06:05 +08:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
export DH_VERBOSE=1
|
2024-05-17 23:40:07 +08: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 15:06:05 +08:00
|
|
|
|
|
|
|
%:
|
2018-03-04 23:07:33 +08:00
|
|
|
dh $@
|
|
|
|
|
2020-02-16 20:58:27 +08:00
|
|
|
# Setting the build system is still required, because otherwise the GNUmakefile gets picked up
|
2018-03-04 23:07:33 +08:00
|
|
|
override_dh_auto_configure:
|
2024-04-27 18:05:16 +08: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
|