mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-01-11 08:34:01 -05:00
17 lines
365 B
Rust
17 lines
365 B
Rust
use cc;
|
|
|
|
fn main() {
|
|
cc::Build::new()
|
|
.cpp(true)
|
|
.flag("-std:c++17")
|
|
.debug(true)
|
|
.file("src/lib.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");
|
|
}
|
|
}
|