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