fixed library search paths for openvr

This commit is contained in:
Rene Eichhorn
2016-04-10 16:04:49 +02:00
parent d7a4c2236e
commit 9b080084c2
2 changed files with 5 additions and 0 deletions

2
.gitignore vendored
View File

@ -5,3 +5,5 @@
/modules/oculus_sdk_mac/LibOVR/Lib/Mac/Xcode/Release/
/target
*.py[co]
/src/sys/target/
*.lock

View File

@ -2,15 +2,18 @@
#[cfg(target_os="macos")]
fn main() {
println!("cargo:rustc-link-search={}/../../openvr/lib/osx32", env!("CARGO_MANIFEST_DIR"));
println!("cargo:rustc-link-search={}/../../openvr/bin/osx32", env!("CARGO_MANIFEST_DIR"));
}
#[cfg(target_os="linux")]
fn main() {
println!("cargo:rustc-link-search={}/../../openvr/lib/linux64", env!("CARGO_MANIFEST_DIR"));
println!("cargo:rustc-link-search={}/../../openvr/bin/linux64", env!("CARGO_MANIFEST_DIR"));
}
#[cfg(target_os="windows")]
fn main() {
println!("cargo:rustc-link-search={}\\..\\..\\openvr\\lib\\win64", env!("CARGO_MANIFEST_DIR"));
println!("cargo:rustc-link-search={}\\..\\..\\openvr\\bin\\win64", env!("CARGO_MANIFEST_DIR"));
}