GlobalProtect-openconnect/common/build.rs
2023-05-10 21:16:33 +08:00

13 lines
358 B
Rust

fn main() {
// Link to the native openconnect library
println!("cargo:rustc-link-lib=openconnect");
println!("cargo:rerun-if-changed=src/vpn/vpn.c");
println!("cargo:rerun-if-changed=src/vpn/vpn.h");
// Compile the wrapper.c file
cc::Build::new()
.file("src/vpn/vpn.c")
.include("src/vpn")
.compile("vpn");
}