diff options
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 9387535ec81..8e7a9f4b2dc 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -606,6 +606,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" |