diff options
| author | Fenrir <[email protected]> | 2017-07-25 20:12:21 -0600 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2017-07-25 21:03:02 -0600 |
| commit | c159576e6d4a84e4958257f9b87ea9e06d4bbcb3 (patch) | |
| tree | e3014df2d64dcb842f4b7850d4f252f4b6a7708e /examples/build.rs | |
| parent | Merge pull request #36 from FenrirWolf/errDisp (diff) | |
| download | archived-ctru-rs-c159576e6d4a84e4958257f9b87ea9e06d4bbcb3.tar.xz archived-ctru-rs-c159576e6d4a84e4958257f9b87ea9e06d4bbcb3.zip | |
Add examples directory
Diffstat (limited to 'examples/build.rs')
| -rw-r--r-- | examples/build.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/build.rs b/examples/build.rs new file mode 100644 index 0000000..cded1d0 --- /dev/null +++ b/examples/build.rs @@ -0,0 +1,11 @@ +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", + }); +} |