mirror of
https://github.com/servo/servo.git
synced 2025-06-29 19:43:39 +01:00
Use the bootstraped Android toolchains by default
This commit is contained in:
parent
65122b10d3
commit
fc77db4b09
3 changed files with 18 additions and 18 deletions
|
@ -525,6 +525,16 @@ class CommandBase(object):
|
|||
if self.config["android"]["platform"]:
|
||||
env["ANDROID_PLATFORM"] = self.config["android"]["platform"]
|
||||
|
||||
toolchains = path.join(self.context.topdir, "android-toolchains")
|
||||
for kind in ["sdk", "ndk"]:
|
||||
default = os.path.join(toolchains, kind)
|
||||
if os.path.isdir(default):
|
||||
env.setdefault("ANDROID_" + kind.upper(), default)
|
||||
|
||||
tools = os.path.join(toolchains, "sdk", "platform-tools")
|
||||
if os.path.isdir(tools):
|
||||
env["PATH"] = "%s%s%s" % (tools, os.pathsep, env["PATH"])
|
||||
|
||||
# These are set because they are the variable names that build-apk
|
||||
# expects. However, other submodules have makefiles that reference
|
||||
# the env var names above. Once glutin is enabled and set as the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue