Browse Source

Remove build script from examples

pull/10/head
Fenrir 7 years ago committed by FenrirWolf
parent
commit
05e87af948
  1. 2
      examples/Cargo.toml
  2. 11
      examples/build.rs

2
examples/Cargo.toml

@ -5,9 +5,7 @@ version = "0.1.0" @@ -5,9 +5,7 @@ version = "0.1.0"
[dependencies]
ctru-rs = { path = "../ctru-rs" }
[profile.dev]
lto = true
[profile.release]
lto = true

11
examples/build.rs

@ -1,11 +0,0 @@ @@ -1,11 +0,0 @@
use std::env;
fn main() {
let dkp_path = env::var("DEVKITPRO").unwrap();
println!("cargo:rustc-link-search=native={}/libctru/lib", dkp_path);
println!("cargo:rustc-link-lib=static={}", match env::var("PROFILE").unwrap().as_str() {
"debug" => "ctrud",
_ => "ctru",
});
}
Loading…
Cancel
Save