mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
flatten workspace into 1 crate
This commit is contained in:
parent
7c4e1e2166
commit
d926422c67
147 changed files with 66 additions and 126 deletions
18
suil/build.rs
Normal file
18
suil/build.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
use std::path::PathBuf;
|
||||
use std::env::var;
|
||||
use bindgen::{Builder, CargoCallbacks};
|
||||
fn main() {
|
||||
//println!("cargo:rustc-link-lib=lv2");
|
||||
println!("cargo:rustc-link-lib=suil-0");
|
||||
let bindings = Builder::default()
|
||||
.header("wrapper.h")
|
||||
//.clang_arg("-Ilv2/include/lv2")
|
||||
.clang_arg("-Isuil/include/suil")
|
||||
.parse_callbacks(Box::new(CargoCallbacks::new()))
|
||||
.generate()
|
||||
.expect("Unable to generate bindings");
|
||||
let out_path = PathBuf::from(var("OUT_DIR").unwrap());
|
||||
bindings
|
||||
.write_to_file(out_path.join("bindings.rs"))
|
||||
.expect("Couldn't write bindings!");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue