From f534a308a4210aff15a1ad2057327d62e89c6e31 Mon Sep 17 00:00:00 2001 From: Colin Sherratt Date: Sun, 3 Aug 2014 22:19:56 -0400 Subject: [PATCH 1/2] fixed for ash --- scripts/compile-for-cargo | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 From 7c772088778259a8baea1e34bdf256fd5ee8e522 Mon Sep 17 00:00:00 2001 From: Colin Sherratt Date: Sun, 3 Aug 2014 22:23:35 -0400 Subject: [PATCH 2/2] update readme for Cargo --- Readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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