diff --git a/Readme.md b/Readme.md index 0345c7e..ac3ee10 100644 --- a/Readme.md +++ b/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 diff --git a/scripts/compile-for-cargo b/scripts/compile-for-cargo index 5b74f68..293bd3a 100755 --- a/scripts/compile-for-cargo +++ b/scripts/compile-for-cargo @@ -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