mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-22 16:25:36 +00:00
added build script
This commit is contained in:
6
examples/test.rs
Normal file
6
examples/test.rs
Normal 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
8
src/sys/build.rs
Normal 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() {}
|
Reference in New Issue
Block a user