Added a "dylib" feature flag, that enables linking with raylib
dynamically instead of statically
This commit is contained in:
parent
e93f846280
commit
e3daf66f65
@ -28,3 +28,4 @@ regex = "1"
|
||||
[features]
|
||||
default = ["macros"]
|
||||
macros = []
|
||||
dylib = []
|
||||
|
@ -68,8 +68,13 @@ pub fn link_libs() {
|
||||
}
|
||||
|
||||
// Link raylib itself
|
||||
if cfg!(feature = "dylib") {
|
||||
println!("cargo:rustc-link-lib=dylib=raylib");
|
||||
}
|
||||
else {
|
||||
println!("cargo:rustc-link-lib=static=raylib");
|
||||
}
|
||||
}
|
||||
|
||||
/// Generates `bindings.rs` file
|
||||
pub fn generate_bindings(header_file: &str) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user