first bits of a dynamc lib
This commit is contained in:
18
lib/build.rs
Normal file
18
lib/build.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use cbindgen::*;
|
||||
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
|
||||
|
||||
Builder::new()
|
||||
.with_crate(crate_dir)
|
||||
.with_language(Language::C)
|
||||
.with_config(Config {
|
||||
cpp_compat: true,
|
||||
..Default::default()
|
||||
})
|
||||
.generate()
|
||||
.expect("Unable to generate bindings")
|
||||
.write_to_file("taskchampion.h");
|
||||
}
|
||||
Reference in New Issue
Block a user