-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.rs
29 lines (26 loc) · 1.01 KB
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use std::process::Command;
fn main() {
Command::new("git")
.args(["submodule", "init"])
.status()
.expect("Unable to initialize git submodules");
Command::new("git")
.args(["submodule", "update"])
.status()
.expect("Unable to update the submodule repositories");
cxx_build::bridge("src/safe.rs")
.file("src/safe.cc")
.file("include/taitank/src/taitank.cc")
.file("include/taitank/src/taitank_style.cc")
.file("include/taitank/src/taitank_node.cc")
.file("include/taitank/src/taitank_flexline.cc")
.file("include/taitank/src/taitank_flex.cc")
.file("include/taitank/src/taitank_config.cc")
.file("include/taitank/src/taitank_cache.cc")
.file("include/taitank/src/taitank_util.cc")
.std("c++17")
.compile("taitank-safe");
println!("cargo:rerun-if-changed=src/main.rs");
println!("cargo:rerun-if-changed=src/safe.cc");
println!("cargo:rerun-if-changed=include/safe.h");
}