mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-30 17:28:20 +02:00
parent
4218c95e8d
commit
43e1cd6c49
6
third_party/cxx/blobstore/build.rs
vendored
6
third_party/cxx/blobstore/build.rs
vendored
@ -1,9 +1,13 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
|
// Find target directory, either from CARGO_TARGET_DIR or in-tree if unset.
|
||||||
|
let mut src_dir = std::env::var_os("CARGO_TARGET_DIR").unwrap_or("../../../target".into());
|
||||||
|
src_dir.push("/cxxbridge/demo/src");
|
||||||
|
|
||||||
cxx_build::bridge("src/main.rs")
|
cxx_build::bridge("src/main.rs")
|
||||||
.file("src/blobstore.cc")
|
.file("src/blobstore.cc")
|
||||||
.flag_if_supported("-std=c++14")
|
.flag_if_supported("-std=c++14")
|
||||||
.include(".")
|
.include(".")
|
||||||
.include("../../../target/cxxbridge/demo/src")
|
.include(src_dir)
|
||||||
.compile("cxxbridge-demo");
|
.compile("cxxbridge-demo");
|
||||||
|
|
||||||
println!("cargo:rerun-if-changed=src/main.rs");
|
println!("cargo:rerun-if-changed=src/main.rs");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user