mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-09-01 15:09:21 +00:00
Merge branch 'master' of https://github.com/csherratt/vr-rs
This commit is contained in:
10
Readme.md
10
Readme.md
@ -8,14 +8,14 @@ VR-RS providers bindings for the Oculus's libovr. Currently it only provides bin
|
||||
Building
|
||||
--------
|
||||
|
||||
Make sure all submodules were cloned first.
|
||||
vr-rs is fully cargoized. to Compile
|
||||
|
||||
git submodule update --init --recursive
|
||||
cargo build
|
||||
|
||||
Building is straight forward.
|
||||
To add as a dependency using cargo Cargo add the following to your `Cargo.toml`
|
||||
|
||||
./configure
|
||||
make
|
||||
[dependencies.ovr]
|
||||
git = "https://github.com/csherratt/vr-rs.git"
|
||||
|
||||
|
||||
Using VR-RS
|
||||
|
@ -4,14 +4,10 @@ set -e
|
||||
|
||||
OS=`uname`
|
||||
|
||||
env
|
||||
|
||||
if [ "x$OS" == "xLinux" ] ; then
|
||||
if [ "x$OS" = "xLinux" ] ; then
|
||||
make -C modules/oculus_sdk_linux/
|
||||
cp modules/oculus_sdk_linux/LibOVR/Lib/Linux/Release/x86_64/libovr.a $OUT_DIR/
|
||||
elif [ "x$OS" == "xDarwin" ] ; then
|
||||
elif [ "x$OS" = "xDarwin" ] ; then
|
||||
xcodebuild -project modules/oculus_sdk_mac/LibOVR/Projects/Mac/Xcode/LibOVR.xcodeproj build
|
||||
cp modules/oculus_sdk_mac/LibOVR/Lib/MacOS/Release/libovr.a $OUT_DIR/
|
||||
fi
|
||||
|
||||
env
|
||||
|
Reference in New Issue
Block a user