Merge pull request #6 from InvalidString/dynamic-feature
Added a "dylib" feature flag
This commit is contained in:
commit
a496f2bdfe
@ -27,4 +27,5 @@ regex = "1"
|
||||
|
||||
[features]
|
||||
default = ["macros"]
|
||||
macros = []
|
||||
macros = []
|
||||
dylib = []
|
||||
|
@ -68,7 +68,12 @@ pub fn link_libs() {
|
||||
}
|
||||
|
||||
// Link raylib itself
|
||||
println!("cargo:rustc-link-lib=static=raylib");
|
||||
if cfg!(feature = "dylib") {
|
||||
println!("cargo:rustc-link-lib=dylib=raylib");
|
||||
}
|
||||
else {
|
||||
println!("cargo:rustc-link-lib=static=raylib");
|
||||
}
|
||||
}
|
||||
|
||||
/// Generates `bindings.rs` file
|
||||
|
Loading…
x
Reference in New Issue
Block a user