mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-19 02:20:12 +01:00
16 lines
435 B
Rust
16 lines
435 B
Rust
fn main() {
|
|
println!("cargo::rerun-if-changed=src/main.c");
|
|
println!("cargo::rerun-if-changed=build.rs");
|
|
|
|
let sp_include = std::env::var_os("DEP_SERVICEPOINT_INCLUDE")
|
|
.unwrap()
|
|
.into_string()
|
|
.unwrap();
|
|
|
|
// this builds a lib, this is only to check that the example compiles
|
|
let mut cc = cc::Build::new();
|
|
cc.file("src/main.c");
|
|
cc.include(&sp_include);
|
|
cc.compile("lang_c");
|
|
}
|