rusty_v8/build.rs
2019-10-22 14:52:43 -07:00

21 lines
499 B
Rust

use cc;
fn main() {
cc::Build::new()
.cpp(true)
.flag("-std:c++17")
.debug(true)
.file("src/v8/inspector/channel.cpp")
.file("src/v8/inspector/client.cpp")
.file("src/v8/platform/task.cpp")
.file("src/v8/string_buffer.cpp")
.compile("v8-bindings");
println!("cargo:rustc-link-lib=static=v8_monolith");
println!("cargo:rustc-link-search=goog/v8/out/x64.release/obj");
if cfg!(target_os = "windows") {
println!("cargo:rustc-link-lib=dylib=winmm");
}
}