aboutsummaryrefslogtreecommitdiff
path: root/crates/render-demo/Cargo.toml
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-19 13:17:14 +0300
committerValentin Popov <valentin@popov.link>2026-02-19 13:17:14 +0300
commit7346e695c46bea705d7f9487fc6602b57866048a (patch)
tree565e0790bfa991503748746e5355e21a842861b1 /crates/render-demo/Cargo.toml
parentbb827c3928ee6fc56c04e503be9f39ae70efee67 (diff)
downloadfparkan-7346e695c46bea705d7f9487fc6602b57866048a.tar.xz
fparkan-7346e695c46bea705d7f9487fc6602b57866048a.zip
feat(render-demo): обновить поддержку OpenGL с добавлением выбора между GLES2 и Core 3.3
Diffstat (limited to 'crates/render-demo/Cargo.toml')
-rw-r--r--crates/render-demo/Cargo.toml7
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"