From 2a2d8533bcfad0c234c6283543d86b19de544668 Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 18 Jan 2023 17:38:46 -0500 Subject: [PATCH] specify sdl2 dep with non-windows and windows for build differences may need to be fine-tuned still, as i've not done very thorough testing on all platforms as of yet, but this will get things started at least --- libretrogd/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libretrogd/Cargo.toml b/libretrogd/Cargo.toml index 15e5b74..9ab3cd1 100644 --- a/libretrogd/Cargo.toml +++ b/libretrogd/Cargo.toml @@ -10,7 +10,6 @@ low_res = [] wide = [] [dependencies] -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } byte-slice-cast = "1.2.1" byteorder = "1.4.3" thiserror = "=1.0.30" @@ -18,6 +17,12 @@ rand = "0.8.5" num-traits = "0.2.14" bitflags = "1.3" +[target.'cfg(not(windows))'.dependencies] +sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } + +[target.'cfg(windows)'.dependencies] +sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["unsafe_textures"] } + [dev-dependencies] claim = "0.5.0" criterion = "0.3.5"