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

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target /target
Cargo.lock
config.yaml* config.yaml*

View file

@ -11,4 +11,7 @@ serde = "1.0.144"
serde_yaml = "0.9.10" serde_yaml = "0.9.10"
postbus = "0.2.0" postbus = "0.2.0"
matrix-sdk= "0.5.0" matrix-sdk= "0.5.0"
[target.x86_64-unknown-linux-musl.dependencies]
openssl = { version = "0.10", features = ["vendored"] }

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",
]