Files
squeekboard/debian/rules
MoonlightWave-12 117b3e0763 Build: Use vendored dependencies for building .deb packages
It is currently not possible to build Squeekboard with only
packages that are available in Debian.
This is not likely to change until Squeekboard has been ported
to GTK4 or gtk4-layer-shell.
Until then, vendor the dependencies during the build,
so that one can still use the ".deb"-packages for testing.

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/659>
2024-08-11 14:53:39 +00:00

33 lines
1.0 KiB
Makefile
Executable File

#!/usr/bin/make -f
export CARGO_HOME = $(CURDIR)/debian/cargo
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# the below avoids an FTBFS on mips64el with a GOT > 64kb
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH),mips64el)
export RUSTFLAGS = -Ctarget-feature=+xgot
endif
# the below avoids an FTBFS on mips64el with a GOT > 64kb
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH),mips64el)
xgot = -Ctarget-feature=+xgot
else
xgot =
endif
# Don't use paths that may change between builds.
# No need to care about $HOME
# because Cargo will not place any source in ~/.cargo.
# The build directory is a subdirectory of the source directory,
# so it doesn't need to be explicitly taken care of.
export RUSTFLAGS = --remap-path-prefix=$(CURDIR)=/remap-pwd $(xgot)
%:
dh $@ --builddirectory=_build --buildsystem=meson
# TODO: Remove this, after Squeekboard can also be built with Debian packages only.
execute_before_dh_auto_configure:
cargo vendor