Commit 036a0bda authored by Florian Blasius's avatar Florian Blasius 🤘

add bundle feature to enable/disable sdl2 bundled

parent 6930af33
Pipeline #8497 passed with stage
in 4 minutes and 13 seconds
......@@ -18,14 +18,15 @@ name = "orbclient"
path = "src/lib.rs"
[target.'cfg(not(target_os = "redox"))'.dependencies]
sdl2 = { version = "0.34", features = ["bundled", "static-link", "raw-window-handle"], optional = true }
sdl2-sys = { version = "0.34", features = ["bundled", "static-link"], optional = true }
libc = { version = "0.2", optional = true }
raw-window-handle = { version = "0.3", optional = true }
sdl2 = { version = "0.34", features = ["raw-window-handle"] }
sdl2-sys = "0.34"
libc = "0.2"
raw-window-handle = "0.3"
[target.'cfg(target_os="redox")'.dependencies]
redox_syscall = { version = "0.1", optional = true }
redox_syscall = "0.1"
[features]
default = ["sdl2", "sdl2-sys", "libc", "raw-window-handle", "redox_syscall"]
default = ["bundled"]
bundled = ["sdl2/bundled", "sdl2/static-link", "sdl2-sys/bundled", "sdl2-sys/static-link"]
no_std = []
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment