Skip to content
Mihail edited this page Feb 7, 2018 · 7 revisions

Build tips

Building all samples

There is a gradle project at the repo's root.

  • ./gradlew assembleDebug would build all the samples we have
  • ./gradlew installDebug would install all the samples to the connected phone
  • ./gradlew uninstallDebug tries to uninstall the samples

Copying Oculus signature files

Define OCULUS_SIGS_DIRECTORY in your global gradle.properties and specify a path where you have stored your Oculus signature files (oculussig_*). All the signature files in the specified directory will be automatically copied to the sample's assets subdirectory and included in the apk.

Selecting backend

By default the demos include both the Oculus and Daydream backends. This can be overridden by explicitly setting to true or false the following gradle properties: backend_oculus, backend_daydream, backend_monoscopic. You can have any combination of these. The backends have a priority order which is determined by the number in the backend_x.txt file under the assets folder. The order is Oculus, Daydream, Monoscopic.

Clone this wiki locally