Skip to content
Snippets Groups Projects
Verified Commit b7ce4b6a 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 dbb536b5
No related branches found
No related tags found
No related merge requests found
Pipeline #2247 passed
...@@ -11,8 +11,10 @@ edition = "2018" ...@@ -11,8 +11,10 @@ edition = "2018"
path = "../.." path = "../.."
[dependencies.sdl2] [dependencies.sdl2]
version = "0.35" sdl2 = { version = "0.35", features = ["ttf", "image", "gfx", "mixer", "static-link", "use-vcpkg"] }
features = ["ttf", "image", "gfx", "mixer", "static-link", "use-vcpkg"]
[target.'cfg(linux)'.dependencies]
sdl2 = { version = "0.35", features = ["ttf", "image", "gfx", "mixer", "bundled"] }
[package.metadata.vcpkg] [package.metadata.vcpkg]
dependencies = ["sdl2", "sdl2-image[libjpeg-turbo,tiff,libwebp]", "sdl2-ttf", "sdl2-gfx", "sdl2-mixer"] dependencies = ["sdl2", "sdl2-image[libjpeg-turbo,tiff,libwebp]", "sdl2-ttf", "sdl2-gfx", "sdl2-mixer"]
......
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