aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-06-25 18:48:20 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-07-02 13:25:44 +0200
commit888974240705670db18e4e4acab4ec53b57f8a9f (patch)
treef25b217742c485004da97a359df6f6952ad88ad3 /python
parent1ee54ab5fb4ba6de80174b65d2e3cf335c33611c (diff)
downloadservo-888974240705670db18e4e4acab4ec53b57f8a9f.tar.gz
servo-888974240705670db18e4e4acab4ec53b57f8a9f.zip
mach bootstrap-android: configure and show how to start an emulator
Diffstat (limited to 'python')
-rw-r--r--python/servo/bootstrap_commands.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py
index 51ed2cd542c..eadebb837ce 100644
--- a/python/servo/bootstrap_commands.py
+++ b/python/servo/bootstrap_commands.py
@@ -118,6 +118,8 @@ class MachCommands(CommandBase):
"--package", image,
"--force",
])
+ with open(path.join(toolchains, "avd", avd_name, "config.ini"), "a") as f:
+ f.write("disk.dataPartition.size=1G\n")
contents = os.listdir(ndk_path)
assert len(contents) == 1
@@ -127,6 +129,10 @@ class MachCommands(CommandBase):
print("export ANDROID_SDK=\"%s\"" % tools_path)
print("export ANDROID_NDK=\"%s\"" % ndk_path)
print("export PATH=\"%s:$PATH\"" % path.join(tools_path, "platform-tools"))
+ print("")
+ # https://developer.android.com/studio/run/emulator-acceleration#command-gpu
+ print(path.join(tools_path, "tools", "emulator") +
+ " @servo-armv7 -gpu swiftshader_indirect [ -no-window ]")
@Command('update-hsts-preload',
description='Download the HSTS preload list',