mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-22 04:40:01 +00:00
21 lines
499 B
Rust
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");
|
|
}
|
|
}
|