This doesn't quite work yet

This commit is contained in:
greg 2019-12-05 03:19:41 -08:00
parent cccb12ddba
commit fac14c9449
2 changed files with 10 additions and 1 deletions

View File

@ -5,9 +5,11 @@ use std::path::Path;
fn main() {
println!("Running build script");
let most_src = Path::new("vendor/most-5.1.0");
let most_src = Path::new("vendor/most-5.1.0/src");
println!("Most src path: {}", most_src.display());
Build::new()
.files(most_src)
.include(most_src)
.compile("most");
}

View File

@ -1,3 +1,10 @@
#[allow(non_camel_case_types, non_snake_case)]
mod ffi;
use std::{env, ffi::CString};
fn main() {
println!("Hello, world!");
unsafe {
ffi::most_usage();
}
}