Update SDL; add no-link feature

This commit is contained in:
Luke Street
2022-02-07 15:16:20 -05:00
parent b36d04851a
commit e282ef3acd
4 changed files with 4 additions and 1 deletions
+1
View File
@@ -55,6 +55,7 @@ use-vcpkg = ["sdl2-sys/use-vcpkg"]
use_mac_framework = ["sdl2-sys/use_mac_framework"]
bundled = ["sdl2-sys/bundled"]
static-link = ["sdl2-sys/static-link"]
no-link = ["sdl2-sys/no-link"]
[package.metadata.docs.rs]
features = ["default", "gfx", "mixer", "image", "ttf"]
+1
View File
@@ -50,6 +50,7 @@ use-pkgconfig = ["pkg-config"]
use-vcpkg = ["vcpkg"]
use-bindgen = ["bindgen"]
static-link = []
no-link = []
use_mac_framework = []
bundled = ["cmake"]
mixer = []
+1
View File
@@ -495,6 +495,7 @@ fn main() {
println!("cargo:include={}", sdl2_includes);
}
#[cfg(not(feature = "no-link"))]
link_sdl2(target_os);
// Android builds shared libhidapi.so even for static builds.