2019-10-20 18:51:12 +00:00
|
|
|
fn main() {
|
|
|
|
cc::Build::new()
|
2020-03-11 23:49:18 +00:00
|
|
|
.file("src/cxx.cc")
|
2020-05-08 18:23:46 +00:00
|
|
|
.cpp(true)
|
2020-05-08 20:06:04 +00:00
|
|
|
.cpp_link_stdlib(None) // linked via link-cplusplus crate
|
2020-08-29 00:25:29 +00:00
|
|
|
.flag_if_supported(cxxbridge_flags::STD)
|
2020-09-02 06:00:38 +00:00
|
|
|
.compile("cxxbridge04");
|
2020-03-11 23:49:18 +00:00
|
|
|
println!("cargo:rerun-if-changed=src/cxx.cc");
|
|
|
|
println!("cargo:rerun-if-changed=include/cxx.h");
|
2020-08-31 04:03:38 +00:00
|
|
|
println!("cargo:rustc-cfg=built_with_cargo");
|
2019-10-20 18:51:12 +00:00
|
|
|
}
|