Cross compilation...ish
parent
a425a5756c
commit
955c3effd7
@ -0,0 +1,13 @@
|
||||
[target.x86_64-unknown-linux-gnu]
|
||||
rustflags = ["-Zshare-generics=y"]
|
||||
|
||||
# [target.x86_64-apple-darwin]
|
||||
# rustflags = [
|
||||
# "-C",
|
||||
# "link-arg=-fuse-ld=/usr/local/bin/zld",
|
||||
# "-Zshare-generics=y",
|
||||
# "-Zrun-dsymutil=no",
|
||||
# ]
|
||||
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
rustflags = ["-Zshare-generics=y"]
|
||||
@ -0,0 +1,2 @@
|
||||
[target.x86_64-unknown-linux-gnu]
|
||||
dockerfile = "target/x86_64-unknown-linux-gnu/Dockerfile"
|
||||
@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
println!("cargo:rustc-link-lib=fmod");
|
||||
println!("cargo:rustc-link-lib=fmodstudio");
|
||||
println!("cargo:rustc-link-search=lib/linux");
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
|
||||
FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --assume-yes \
|
||||
g++ \
|
||||
libasound2-dev \
|
||||
libudev-dev \
|
||||
libwayland-dev \
|
||||
libx11-dev \
|
||||
libxkbcommon-dev \
|
||||
mesa-vulkan-drivers \
|
||||
pkg-config ;
|
||||
|
||||
Loading…
Reference in New Issue