14 lines
249 B
Rust
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");
|
|
}
|