mirror of
https://github.com/servo/servo.git
synced 2025-10-05 02:59:19 +01:00
Support for Android armv7 and aarch64 target triples
This commit is contained in:
parent
f6bd158fd4
commit
01228282cd
9 changed files with 145 additions and 34 deletions
|
@ -141,10 +141,20 @@ class PackageCommands(CommandBase):
|
|||
dir_to_root = self.get_top_dir()
|
||||
target_dir = path.dirname(binary_path)
|
||||
if android:
|
||||
if dev:
|
||||
task_name = "assembleArmDebug"
|
||||
android_target = self.config["android"]["target"]
|
||||
if "aarch64" in android_target:
|
||||
build_type = "Arm64"
|
||||
elif "armv7" in android_target:
|
||||
build_type = "Armv7"
|
||||
else:
|
||||
task_name = "assembleArmRelease"
|
||||
build_type = "Arm"
|
||||
|
||||
if dev:
|
||||
build_mode = "Debug"
|
||||
else:
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue