1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-12-18 07:05:52 +01:00
slidershim/src-wwserial/build.rs

23 lines
791 B
Rust
Raw Normal View History

2022-02-21 13:58:38 +01:00
fn main() {
cxx_build::bridge("src/lib.rs")
.file("src/serial.cc")
.file("src/serial_win.cc")
.file("src/list_ports_win.cc")
.file("src/wwserial.cc")
.flag_if_supported("-std=c++14")
.compile("cxxbridge-demo");
println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=include/serial.h");
println!("cargo:rerun-if-changed=include/serial_win.h");
println!("cargo:rerun-if-changed=include/v8stdint.cc");
println!("cargo:rerun-if-changed=src/serial.cc");
println!("cargo:rerun-if-changed=src/serial_win.cc");
println!("cargo:rerun-if-changed=src/list_ports_win.cc");
println!("cargo:rerun-if-changed=src/wwserial.cc");
println!("cargo:rerun-if-changed=include/wwserial.h");
}