Skip to content

Commit

Permalink
Update build.rs
Browse files Browse the repository at this point in the history
Switch to main.rs
  • Loading branch information
MoutOgm authored Nov 12, 2024
1 parent 3c3b06d commit 6b7cf52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ fn main() {
let crate_name = env!("CARGO_PKG_NAME");

// Compilation CXX
cxx_build::bridge("src/lib.rs")
cxx_build::bridge("src/main.rs")
.std("c++17")
.compile(&crate_name);

let root_dir = get_root_dir();
println!("cargo:warning=Root dir: {}", root_dir.display());

// Chemins source et destination
let src = root_dir.join(format!("target/cxxbridge/{}/src/lib.rs.h", crate_name));
let src = root_dir.join(format!("target/cxxbridge/{}/src/main.rs.h", crate_name));
let dst_dir = root_dir.join("target/cxxbridge");
let dst = dst_dir.join(format!("{}.hpp", crate_name));

Expand Down

0 comments on commit 6b7cf52

Please sign in to comment.