Cross compilation...ish

selection-refactor
Elijah Voigt 2 years ago
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"]

@ -2,9 +2,8 @@
name = "martian-chess"
version = "0.1.0"
edition = "2021"
build = "build.rs"
[dependencies]
bevy_fmod = "0.3"
[dependencies.bevy]
version = "0.11"
bevy = "0.11"

@ -0,0 +1,2 @@
[target.x86_64-unknown-linux-gnu]
dockerfile = "target/x86_64-unknown-linux-gnu/Dockerfile"

@ -50,3 +50,7 @@ Package web version with WASM libraries
Linux: https://appimage.org/
Windows:
FMOD PR:
* Sane default for CARGO_MANIFEST_DIR
* Linux library instructions

@ -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");
}

@ -1,3 +1,5 @@
#![windows_subsystem = "windows"]
mod audio;
mod debug;
mod display2d;

@ -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…
Cancel
Save