Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Feb 22, 2024
1 parent f80702e commit 9ed9ff5
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions waku-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,42 @@ fn generate_bindgen_code(project_dir: &Path) {
let header_path = vendor_path.join("library/libwaku.h");

cc::Build::new()
.object(vendor_path.join("vendor/nim-libbacktrace/libbacktrace_wrapper.o").display().to_string())
.compile("libbacktrace_wrapper");
.object(
vendor_path
.join("vendor/nim-libbacktrace/libbacktrace_wrapper.o")
.display()
.to_string(),
)
.compile("libbacktrace_wrapper");

println!("cargo:rerun-if-changed={}", header_path.display());
println!("cargo:rustc-link-search={}", vendor_path.join("build").display());
println!("cargo:rustc-link-lib=static=waku");
println!("cargo:rustc-link-search={}", vendor_path.join("vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc/build").display());
println!(
"cargo:rustc-link-search={}",
vendor_path.join("build").display()
);
println!("cargo:rustc-link-lib=static=waku");
println!(
"cargo:rustc-link-search={}",
vendor_path
.join("vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc/build")
.display()
);
println!("cargo:rustc-link-lib=static=miniupnpc");
println!("cargo:rustc-link-search={}", vendor_path.join("vendor/nim-nat-traversal/vendor/libnatpmp-upstream").display());
println!(
"cargo:rustc-link-search={}",
vendor_path
.join("vendor/nim-nat-traversal/vendor/libnatpmp-upstream")
.display()
);
println!("cargo:rustc-link-lib=static=natpmp");
println!("cargo:rustc-link-lib=dl");
println!("cargo:rustc-link-lib=m");
println!("cargo:rustc-link-search=native={}", vendor_path.join("vendor/nim-libbacktrace/install/usr/lib").display());
println!(
"cargo:rustc-link-search=native={}",
vendor_path
.join("vendor/nim-libbacktrace/install/usr/lib")
.display()
);
println!("cargo:rustc-link-lib=static=backtrace");

// TODO: Determine if pthread is automatically included
Expand Down

0 comments on commit 9ed9ff5

Please sign in to comment.