0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-03-09 21:47:00 -04:00
rusty-v8/build.rs

21 lines
487 B
Rust
Raw Normal View History

2019-10-15 18:31:05 -07:00
use cc;
fn main() {
cc::Build::new()
.cpp(true)
.flag("-std:c++17")
.debug(true)
2019-10-22 22:58:11 -07:00
.file("src/inspector/channel.cpp")
.file("src/inspector/client.cpp")
.file("src/platform/task.cpp")
.file("src/string_buffer.cpp")
2019-10-15 18:31:05 -07:00
.compile("v8-bindings");
2019-10-18 12:36:58 -07:00
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");
}
2019-10-15 18:31:05 -07:00
}