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
This commit is contained in:
Gered 2023-01-18 17:38:46 -05:00
parent b010c044ef
commit 2a2d8533bc

View file

@ -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"