Fenrir
8 years ago
4 changed files with 14 additions and 8 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
use std::env; |
||||
use std::path::PathBuf; |
||||
|
||||
fn main() { |
||||
let devkitpro_path = PathBuf::from(env::var("DEVKITPRO").unwrap()); |
||||
|
||||
println!("cargo:rustc-link-search=native={}", devkitpro_path.join("libctru/lib").display()); |
||||
println!("cargo:rustc-link-lib=static={}", match env::var("PROFILE").unwrap().as_str() { |
||||
"release" => "ctru", |
||||
"debug" => "ctrud", |
||||
_ => unreachable!(), |
||||
}); |
||||
} |
Loading…
Reference in new issue