diff options
Diffstat (limited to 'crates/render-demo/Cargo.toml')
| -rw-r--r-- | crates/render-demo/Cargo.toml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/render-demo/Cargo.toml b/crates/render-demo/Cargo.toml index b7b62cd..d92f538 100644 --- a/crates/render-demo/Cargo.toml +++ b/crates/render-demo/Cargo.toml @@ -13,13 +13,18 @@ msh-core = { path = "../msh-core" } nres = { path = "../nres" } render-core = { path = "../render-core" } texm = { path = "../texm" } -sdl2 = { version = "0.37", optional = true, default-features = false, features = ["bundled", "static-link"] } glow = { version = "0.16", optional = true } image = { version = "0.25", optional = true, default-features = false, features = ["png"] } [dev-dependencies] common = { path = "../common" } +[target.'cfg(target_os = "macos")'.dependencies] +sdl2 = { version = "0.37", optional = true, default-features = false, features = ["use-pkgconfig"] } + +[target.'cfg(not(target_os = "macos"))'.dependencies] +sdl2 = { version = "0.37", optional = true, default-features = false, features = ["bundled", "static-link"] } + [[bin]] name = "parkan-render-demo" path = "src/main.rs" |
