Remove googlevr feature (#32840)

* Remove googlevr feature

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Remove googlevr and oculusvr from python scripts

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Remove vr checks entirely

Signed-off-by: Daniel Adams <msub2official@gmail.com>

---------

Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
Daniel Adams 2024-07-23 22:00:50 -10:00 committed by GitHub
parent b6652f88d1
commit e425ad0cb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 27 deletions

View file

@ -140,13 +140,8 @@ class MachCommands(CommandBase):
)
if self.is_android_build and not no_package:
flavor = None
if "googlevr" in self.features:
flavor = "googlevr"
elif "oculusvr" in self.features:
flavor = "oculusvr"
rv = Registrar.dispatch("package", context=self.context, build_type=build_type,
target=self.cross_compile_target, flavor=flavor)
target=self.cross_compile_target, flavor=None)
if rv:
return rv

View file

@ -82,7 +82,7 @@ def copy_windows_dependencies(binary_path, destination):
shutil.copy(path.join(binary_path, f), destination)
def change_prefs(resources_path, platform, vr=False):
def change_prefs(resources_path, platform):
print("Swapping prefs")
prefs_path = path.join(resources_path, "prefs.json")
package_prefs_path = path.join(resources_path, "package-prefs.json")
@ -92,8 +92,6 @@ def change_prefs(resources_path, platform, vr=False):
package_prefs = json.load(package_prefs)
if "all" in package_prefs:
pref_sets += [package_prefs["all"]]
if vr and "vr" in package_prefs:
pref_sets += [package_prefs["vr"]]
if platform in package_prefs:
pref_sets += [package_prefs[platform]]
for pref_set in pref_sets:
@ -183,14 +181,12 @@ class PackageCommands(CommandBase):
if flavor is not None:
flavor_name = flavor.title()
vr = flavor == "googlevr" or flavor == "oculusvr"
dir_to_resources = path.join(self.get_top_dir(), 'target', 'android', 'resources')
if path.exists(dir_to_resources):
delete(dir_to_resources)
shutil.copytree(path.join(dir_to_root, 'resources'), dir_to_resources)
change_prefs(dir_to_resources, "android", vr=vr)
change_prefs(dir_to_resources, "android")
variant = ":assemble" + flavor_name + arch_string + build_type_string
apk_task_name = ":servoapp" + variant