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.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index 63921037c25..ad842c9258a 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -141,10 +141,20 @@ class PackageCommands(CommandBase):
dir_to_root = self.get_top_dir()
target_dir = path.dirname(binary_path)
if android:
+ android_target = self.config["android"]["target"]
+ if "aarch64" in android_target:
+ build_type = "Arm64"
+ elif "armv7" in android_target:
+ build_type = "Armv7"
+ else:
+ build_type = "Arm"
+
if dev:
- task_name = "assembleArmDebug"
+ build_mode = "Debug"
else:
- task_name = "assembleArmRelease"
+ build_mode = "Release"
+
+ task_name = "assemble" + build_type + build_mode
try:
with cd(path.join("support", "android", "apk")):
subprocess.check_call(["./gradlew", "--no-daemon", task_name], env=env)