Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Add separate Oculus 6DOF build target #1307

Merged
merged 1 commit into from
Jun 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,22 @@ android {
arguments "-DVR_SDK_LIB=oculusvr-lib", "-DOCULUSVR=ON"
}
}
manifestPlaceholders = [ headtrackingRequired:"true" ]
}

oculusvr3dof {
dimension "platform"
externalNativeBuild {
cmake {
cppFlags " -I" + file("${project.rootDir}/third_party/ovr_mobile/VrApi/Include").absolutePath +
" -I" + file("${project.rootDir}/app/src/oculusvr/cpp").absolutePath +
" -DOCULUSVR"
arguments "-DVR_SDK_LIB=oculusvr-lib", "-DOCULUSVR=ON"
}
}
manifestPlaceholders = [ headtrackingRequired:"false" ]
}

svr {
dimension "platform"
externalNativeBuild {
Expand Down Expand Up @@ -190,6 +205,10 @@ android {
'oculusvrArmRelease',
'oculusvrArm64Debug',
'oculusvrArm64Release',
'oculusvr3dofArmDebug',
'oculusvr3dofArmRelease',
'oculusvr3dofArm64Debug',
'oculusvr3dofArm64Release',
'svrArmDebug',
'svrArmRelease',
'svrArm64Debug',
Expand Down Expand Up @@ -234,6 +253,15 @@ android {
]
}

oculusvr3dof {
java.srcDirs = [
'src/oculusvr/java'
]
assets.srcDirs = [
'src/oculusvr/assets'
]
}

oculusvrArmRelease {
manifest.srcFile getUseDebugSigningOnRelease() ? "src/oculusvrArmDebug/AndroidManifest.xml"
: manifest.srcFile
Expand All @@ -248,6 +276,24 @@ android {
: "src/oculusvrArmRelease/AndroidManifest.xml"
}

oculusvr3dofArmDebug {
manifest.srcFile "src/oculusvrArmDebug/AndroidManifest.xml"
}

oculusvr3dofArm64Debug {
manifest.srcFile "src/oculusvrArmDebug/AndroidManifest.xml"
}

oculusvr3dofArmRelease {
manifest.srcFile getUseDebugSigningOnRelease() ? "src/oculusvrArmDebug/AndroidManifest.xml"
: "src/oculusvrArmRelease/AndroidManifest.xml"
}

oculusvr3dofArm64Release {
manifest.srcFile getUseDebugSigningOnRelease() ? "src/oculusvrArmDebug/AndroidManifest.xml"
: "src/oculusvrArmRelease/AndroidManifest.xml"
}

svr {
java.srcDirs = [
'src/svr/java'
Expand Down
2 changes: 1 addition & 1 deletion app/src/oculusvrArmDebug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.mozilla.vrbrowser">
<uses-feature android:glEsVersion="0x00030001"/>
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="${headtrackingRequired}" />
<application>
<meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only"/>
<activity android:name=".VRBrowserActivity" android:screenOrientation="landscape">
Expand Down
1 change: 1 addition & 0 deletions tools/taskcluster/build_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

platforms = {
'oculusvr': ['arm', 'arm64'],
'oculusvr3dof': ['arm', 'arm64'],
'wavevr': ['arm'],
'googlevr': ['arm', 'arm64'],
'noapi': ['arm', 'arm64', 'x86'],
Expand Down