mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-05 23:43:11 +00:00
build.rs cleanup avoid linking ssl crypto and pthread
This commit is contained in:
parent
35bacf4316
commit
e25050e635
@ -66,19 +66,11 @@ fn generate_bindgen_code(project_dir: &Path) {
|
|||||||
);
|
);
|
||||||
println!("cargo:rustc-link-lib=static=backtrace");
|
println!("cargo:rustc-link-lib=static=backtrace");
|
||||||
|
|
||||||
println!("cargo:rustc-link-lib=ssl");
|
|
||||||
println!("cargo:rustc-link-lib=crypto");
|
|
||||||
|
|
||||||
cc::Build::new()
|
cc::Build::new()
|
||||||
.file("src/cmd.c") // Compile the C file
|
.file("src/cmd.c") // Compile the C file
|
||||||
.compile("cmditems"); // Compile it as a library
|
.compile("cmditems"); // Compile it as a library
|
||||||
println!("cargo:rustc-link-lib=static=cmditems");
|
println!("cargo:rustc-link-lib=static=cmditems");
|
||||||
|
|
||||||
// TODO: Determine if pthread is automatically included
|
|
||||||
println!("cargo:rustc-link-lib=pthread");
|
|
||||||
|
|
||||||
// TODO: Test in other architectures
|
|
||||||
|
|
||||||
// Generate waku bindings with bindgen
|
// Generate waku bindings with bindgen
|
||||||
let bindings = bindgen::Builder::default()
|
let bindings = bindgen::Builder::default()
|
||||||
// The input header we would like to generate
|
// The input header we would like to generate
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user