mirror of
https://github.com/4yn/slidershim.git
synced 2026-09-08 00:35:46 -05:00
use statically linked interception library for directinput emulation
This commit is contained in:
11
src-interception/build.rs
Normal file
11
src-interception/build.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=include/interception.h");
|
||||
println!("cargo:rerun-if-changed=src/interception.c");
|
||||
cc::Build::new()
|
||||
.define("INTERCEPTION_STATIC", None)
|
||||
.file("src/interception.c")
|
||||
.include("include/")
|
||||
.compile("interception");
|
||||
|
||||
println!("cargo:rustc-link-lib=static=interception");
|
||||
}
|
||||
Reference in New Issue
Block a user