Skip to content

Commit cfc5203

Browse files
authored
Create build.rs
1 parent 3d29732 commit cfc5203

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

source-code/build.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
fn main() {
2+
cxx_build::bridge("src/main.rs")
3+
.file("src/apt_bridge.cpp")
4+
.flag_if_supported("-std=c++17")
5+
.compile("legendary-apt");
6+
7+
println!("cargo:rustc-link-lib=apt-pkg");
8+
println!("cargo:rerun-if-changed=src/main.rs");
9+
println!("cargo:rerun-if-changed=src/apt_bridge.cpp");
10+
println!("cargo:rerun-if-changed=src/apt_bridge.h");
11+
}

0 commit comments

Comments
 (0)