Added support for cross-compiling

This commit is contained in:
Philip (a-0) 2022-08-31 18:14:02 +02:00
parent 832c94069c
commit 4bd50c3806
3 changed files with 14 additions and 1 deletions

9
Cross.toml Normal file
View file

@ -0,0 +1,9 @@
[build]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
]
[target.x86_64-unknown-linux-gnu]
pre-build = [
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH pkg-config:$CROSS_DEB_ARCH cmake:$CROSS_DEB_ARCH",
]