aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/package_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r--python/servo/package_commands.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index 3d6e191a731..5449cfc509a 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -281,6 +281,15 @@ 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)
+
variant = ":assemble" + flavor_name + build_type + build_mode
apk_task_name = ":servoapp" + variant
aar_task_name = ":servoview" + variant