This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +46
-5
lines changed
src/common/shared/org/mozilla/vrbrowser Expand file tree Collapse file tree 5 files changed +46
-5
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ android {
168
168
arguments " -DVR_SDK_LIB=wavevr-lib" , " -DWAVEVR=ON"
169
169
}
170
170
}
171
- applicationIdSuffix " .wavevr "
171
+ applicationIdSuffix " .internal "
172
172
}
173
173
174
174
wavevrStore {
@@ -191,6 +191,17 @@ android {
191
191
arguments " -DPICOVR=ON"
192
192
}
193
193
}
194
+ applicationIdSuffix " .internal"
195
+ }
196
+
197
+ picovrStore {
198
+ dimension " platform"
199
+ externalNativeBuild {
200
+ cmake {
201
+ cppFlags " -DPICOVR"
202
+ arguments " -DPICOVR=ON"
203
+ }
204
+ }
194
205
}
195
206
196
207
noapi {
@@ -229,6 +240,8 @@ android {
229
240
' oculusvr3dofStoreArm64Release' ,
230
241
' picovrArm64Debug' ,
231
242
' picovrArm64Release' ,
243
+ ' picovrStoreArm64Debug' ,
244
+ ' picovrStoreArm64Release' ,
232
245
' wavevrArm64Debug' ,
233
246
' wavevrArm64Release' ,
234
247
' wavevrStoreArm64Debug' ,
@@ -345,6 +358,19 @@ android {
345
358
jniLibs. srcDirs = [" ${ project.rootDir} /third_party/picovr" ]
346
359
}
347
360
361
+ picovrStore {
362
+ java. srcDirs = [
363
+ ' src/picovr/java'
364
+ ]
365
+ assets. srcDirs = [
366
+ ' src/picovr/assets'
367
+ ]
368
+ res. srcDirs = [
369
+ ' src/picovr/res'
370
+ ]
371
+ jniLibs. srcDirs = [" ${ project.rootDir} /third_party/picovr" ]
372
+ }
373
+
348
374
noapi {
349
375
java. srcDirs = [
350
376
' src/noapi/java'
@@ -438,6 +464,7 @@ dependencies {
438
464
439
465
// Pico
440
466
picovrImplementation fileTree(dir : " ${ project.rootDir} /third_party/picovr/" , include : [' *.aar' ])
467
+ picovrStoreImplementation fileTree(dir : " ${ project.rootDir} /third_party/picovr/" , include : [' *.aar' ])
441
468
}
442
469
443
470
if (findProject(' :servo' )) {
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ public static void newWindowOpenEvent() {
157
157
}
158
158
159
159
private static void setStartupMetrics () {
160
- Distribution .INSTANCE .channelName ().set (DeviceType .isOculusBuild () ? "oculusvr" : BuildConfig . FLAVOR_platform );
160
+ Distribution .INSTANCE .channelName ().set (DeviceType .getDeviceTypeId () );
161
161
}
162
162
163
163
@ VisibleForTesting
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ public static void init(Context aContext) {
145
145
final boolean telemetryEnabled = SettingsStore .getInstance (aContext ).isTelemetryEnabled ();
146
146
final TelemetryConfiguration configuration = new TelemetryConfiguration (aContext )
147
147
.setServerEndpoint ("https://incoming.telemetry.mozilla.org" )
148
- .setAppName (APP_NAME + "_" + ( DeviceType .isOculusBuild () ? "oculusvr" : BuildConfig . FLAVOR_platform ))
148
+ .setAppName (APP_NAME + "_" + DeviceType .getDeviceTypeId ( ))
149
149
.setUpdateChannel (BuildConfig .BUILD_TYPE )
150
150
.setPreferencesImportantForTelemetry (resources .getString (R .string .settings_key_locale ))
151
151
.setCollectionEnabled (telemetryEnabled )
Original file line number Diff line number Diff line change @@ -66,4 +66,17 @@ public static boolean isWaveBuild() {
66
66
public static boolean isPicoVR () {
67
67
return BuildConfig .FLAVOR_platform .toLowerCase ().contains ("picovr" );
68
68
}
69
+
70
+ public static String getDeviceTypeId () {
71
+ String type = BuildConfig .FLAVOR_platform ;
72
+ if (DeviceType .isOculusBuild ()) {
73
+ type = "oculusvr" ;
74
+ } else if (DeviceType .isPicoVR ()) {
75
+ type = "picovr" ;
76
+ } else if (DeviceType .isWaveBuild ()) {
77
+ type = "wavevrStore" ;
78
+ }
79
+
80
+ return type ;
81
+ }
69
82
}
Original file line number Diff line number Diff line change 12
12
This is the default behaviour with no options. Only the Release build of each
13
13
architecture for each supported platform is built:
14
14
$ python build_targets.py 1.1.4a
15
- assembleNoapiArm64Release assembleNoapiX86_64Release assembleOculusvrArm64Release assembleWavevrstoreArm64Release assemblePicovrArm64Release assembleOculusvrstoreArm64Release assembleWavevrArm64Release assembleOculusvr3dofstoreArm64Release
15
+ assembleNoapiArm64Release assembleNoapiX86_64Release assembleOculusvrArm64Release assembleWavevrstoreArm64Release assemblePicovrArm64Release assemblePicovrStoreArm64Release assembleOculusvrstoreArm64Release assembleWavevrArm64Release assembleOculusvr3dofstoreArm64Release
16
16
17
17
Specifies only build the OculusVR platform:
18
18
$ python build_targets.py 1.1.4b+oculusvr
19
19
assembleOculusvrArm64Release
20
20
21
21
Specifies all build types including Release and Debug:
22
22
$ python build_targets.py 1.1.4c=all
23
- assembleNoapiArm64 assembleNoapiX86_64 assembleOculusvrArm64 assembleWavevrstoreArm64 assemblePicovrArm64 assembleOculusvrstoreArm64 assembleWavevrArm64 assembleOculusvr3dofstoreArm64
23
+ assembleNoapiArm64 assembleNoapiX86_64 assembleOculusvrArm64 assembleWavevrstoreArm64 assemblePicovrArm64 assemblePicovrStoreArm64 assembleOculusvrstoreArm64 assembleWavevrArm64 assembleOculusvr3dofstoreArm64
24
24
25
25
Specifies Release builds of Arm64 OculusVR, Arm64 WaveVR, and x86_64 NoAPI:
26
26
$ python build_targets.py 1.1.4d+oculusvr+wavevr+noapi=x86_64
39
39
'wavevr' : ['arm64' ],
40
40
'wavevrStore' : ['arm64' ],
41
41
'picovr' : ['arm64' ],
42
+ 'picovrStore' : ['arm64' ],
42
43
'noapi' : ['arm64' , 'x86_64' ],
43
44
}
44
45
You can’t perform that action at this time.
0 commit comments