apt-pkg-native/build.rs
2017-07-13 21:50:53 +01:00

14 lines
249 B
Rust

extern crate gcc;
const SRC: &str = "apt-pkg-c/lib.cpp";
fn main() {
println!("cargo:rerun-if-changed={}", SRC);
gcc::Config::new()
.file(SRC)
.cpp(true)
.flag("-std=gnu++11")
.compile("libapt-pkg-c.a");
}