You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
use std::env;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let dkp_path = env::var("DEVKITPRO").unwrap();
|
|
|
|
let profile = env::var("PROFILE").unwrap();
|
|
|
|
|
|
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
|
|
println!("cargo:rerun-if-env-changed=DEVKITPRO");
|
|
|
|
println!("cargo:rustc-link-search=native={dkp_path}/libctru/lib");
|
|
|
|
println!(
|
|
|
|
"cargo:rustc-link-lib=static={}",
|
|
|
|
match profile.as_str() {
|
|
|
|
"debug" => "ctrud",
|
|
|
|
_ => "ctru",
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|