Commit 4f7baace authored by Ryan Hunt's avatar Ryan Hunt
Browse files

Change build-script's build script

parent 1ec87b6d
......@@ -34,8 +34,9 @@ use cbindgen::{Config, Library};
fn main() {
let config = Config::from_file("cbindgen.toml");
let source = env::var("CARGO_MANIFEST_DIR").unwrap();
Library::load("../build-script", &config)
Library::load(&source, &config)
.generate().unwrap()
.write_to_file("bindings.h");
}
......
extern crate cbindgen;
use std::env;
use cbindgen::{Config, Library};
fn main() {
let config = Config::from_file("cbindgen.toml");
let source = env::var("CARGO_MANIFEST_DIR").unwrap();
Library::load("../build-script", &config)
Library::load(&source, &config)
.generate().unwrap()
.write_to_file("bindings.h");
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment