mirror of
https://github.com/servo/servo.git
synced 2025-06-29 19:43:39 +01:00
mach: android install/run: infer adb path from SDK dir
This commit is contained in:
parent
782d4d4af6
commit
a631cb6b47
3 changed files with 11 additions and 3 deletions
|
@ -626,6 +626,13 @@ class CommandBase(object):
|
|||
def android_aar_dir(self):
|
||||
return path.join(self.context.topdir, "target", "android_aar")
|
||||
|
||||
def android_adb_path(self, env):
|
||||
if "ANDROID_SDK" in env:
|
||||
sdk_adb = path.join(env["ANDROID_SDK"], "platform-tools", "adb")
|
||||
if path.exists(sdk_adb):
|
||||
return sdk_adb
|
||||
return "adb"
|
||||
|
||||
def handle_android_target(self, target):
|
||||
if target == "arm-linux-androideabi":
|
||||
self.config["android"]["platform"] = "android-18"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue