Skip to content
Snippets Groups Projects
Verified Commit ef0adb9e authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: conditional features for SDL2 for Linux

This makes it possible to run Boytacean in Ubuntu using dynamic linking with the native SDL libraries.
parent 389d66af
No related branches found
No related tags found
1 merge request!19Initial tentative audio support 🔉
......@@ -11,8 +11,10 @@ edition = "2018"
path = "../.."
[dependencies.sdl2]
version = "0.35"
features = ["ttf", "image", "gfx", "mixer", "static-link", "use-vcpkg"]
sdl2 = { version = "0.35", features = ["ttf", "image", "gfx", "mixer", "static-link", "use-vcpkg"] }
[target.'cfg(linux)'.dependencies]
sdl2 = { version = "0.35", features = ["ttf", "image", "gfx", "mixer", "bundled"] }
# If the vcpkg version of SDL2 does not work (eg: display not found error)
# then try dynamic linking SDL2 using the following features
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment