From 370650f4b66d9fbc1ef9acba5e80daed56184eed Mon Sep 17 00:00:00 2001 From: Fenrir Date: Tue, 13 Jun 2017 01:14:35 -0600 Subject: Go back to using pre-generated bindings Bindgen takes a long time to compile, and we only ever need to update bindings for new ctrulib releases anyway. --- ctru-rs/Cargo.toml | 2 ++ ctru-rs/build.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'ctru-rs') diff --git a/ctru-rs/Cargo.toml b/ctru-rs/Cargo.toml index e86a5cb..83ebcf9 100644 --- a/ctru-rs/Cargo.toml +++ b/ctru-rs/Cargo.toml @@ -3,6 +3,7 @@ authors = ["Ronald Kinard "] description = "A safe wrapper around smealum's ctrulib." license = "https://en.wikipedia.org/wiki/Zlib_License" name = "ctru-rs" +links = "ctru" version = "0.5.1" [lib] @@ -11,6 +12,7 @@ name = "ctru" [dependencies.ctru-sys] path = "../ctru-sys" +version = "0.4" [dependencies.bitflags] version = "0.7.0" diff --git a/ctru-rs/build.rs b/ctru-rs/build.rs index 7e6e534..ee5b30b 100644 --- a/ctru-rs/build.rs +++ b/ctru-rs/build.rs @@ -2,9 +2,9 @@ use std::env; use std::path::PathBuf; fn main() { - let devkitpro_path = PathBuf::from(env::var("DEVKITPRO").unwrap()); + let dkp_path = PathBuf::from(env::var("DEVKITPRO").unwrap()); - println!("cargo:rustc-link-search=native={}", devkitpro_path.join("libctru/lib").display()); + println!("cargo:rustc-link-search=native={}", dkp_path.join("libctru/lib").display()); println!("cargo:rustc-link-lib=static={}", match env::var("PROFILE").unwrap().as_str() { "release" => "ctru", "debug" => "ctrud", -- cgit v1.2.3