0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-24 08:09:16 -05:00
denoland-rusty-v8/build.rs
2019-10-22 14:52:43 -07:00

20 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");
}
}