apt-pkg-native/build.rs

14 lines
249 B
Rust
Raw Normal View History

2017-07-13 15:49:36 +03:00
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");
}