16 lines
341 B
Rust
16 lines
341 B
Rust
extern crate cc;
|
|
|
|
fn main() {
|
|
|
|
cc::Build::new()
|
|
.cpp(true)
|
|
// .flag("-std=c++11")
|
|
.warnings(false)
|
|
.include("./cpp_src/include")
|
|
.file("./cpp_src/fbx_parse.cpp")
|
|
.compile("fbx_parse");
|
|
// -------------
|
|
println!("cargo:rustc-link-search=native=./cpp_src/lib");
|
|
println!("cargo:rustc-link-lib=fbxsdk");
|
|
}
|