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"