aboutsummaryrefslogtreecommitdiffstats
path: root/make/build-common.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-19 23:58:38 +0200
committerSven Gothel <[email protected]>2014-06-19 23:58:38 +0200
commit8a4dacf38c9d78bc0aafae91cbd256148835ee9b (patch)
treeabc3f1cc215f106b11cf8f3f6dd217dbe57bd34d /make/build-common.xml
parent40d7d0d18ed11b8dbb0f16137f82eef828b822a4 (diff)
Bug 1021: Add OculusSDK binding / Basic OVR support (Refine build exclusion)
common: - property 'oculusvr.sdk.available' is only set if sub-module 'oculusvr-sdk' is available - if 'oculusvr.sdk.available' is not set build.xml will not issue build-oculusvr.xml's 'all' target build-oculusvr.xml: - propery 'oculusvr.build.enabled' is only enabled if 'oculusvr.sdk.available' is set and targer 'all' will only pass if set.
Diffstat (limited to 'make/build-common.xml')
-rw-r--r--make/build-common.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/make/build-common.xml b/make/build-common.xml
index 5a6d9c061..974f66d5e 100644
--- a/make/build-common.xml
+++ b/make/build-common.xml
@@ -234,6 +234,12 @@
<property name="build.oculusvr" value="${build}/oculusvr" />
<property name="obj.oculusvr" value="${build.oculusvr}/obj"/>
+ <property name="rootrel.oculusvr.sdk" value="oculusvr-sdk"/>
+ <property name="rel.oculusvr.sdk" value="${project.root}/${rootrel.oculusvr.sdk}"/>
+ <condition property="oculusvr.sdk.available">
+ <available file="${rel.oculusvr.sdk}/LibOVR/Src/OVR_CAPI.h"/>
+ </condition>
+
<property name="results.test" value="${build}/test/results" />
<property name="build.test" value="${build}/test/build" />
<property name="obj.test" value="${build.test}/obj"/>