added build script

This commit is contained in:
Colin Sherratt
2015-06-15 21:31:38 -04:00
parent a8f4425224
commit a788c794bb
2 changed files with 14 additions and 0 deletions

6
examples/test.rs Normal file
View File

@ -0,0 +1,6 @@
extern crate vr;
fn main() {
let vr = vr::IVRSystem::init().unwrap();
print!("{:?}", vr.bounds());
}

8
src/sys/build.rs Normal file
View File

@ -0,0 +1,8 @@
#[cfg(target_os="macos")]
fn main() {
println!("cargo:rustc-link-search={}/../../openvr/bin/osx32", env!("CARGO_MANIFEST_DIR"));
}
//fn main() {}