mirror of
https://github.com/servo/servo.git
synced 2025-06-10 17:43:16 +00:00
Create and Android virtual device
This commit is contained in:
parent
244a332976
commit
1ee54ab5fb
1 changed files with 9 additions and 0 deletions
|
@ -70,6 +70,7 @@ class MachCommands(CommandBase):
|
||||||
api_level = "25"
|
api_level = "25"
|
||||||
sdk_build_tools = "25.0.2"
|
sdk_build_tools = "25.0.2"
|
||||||
system_image = "google_apis;armeabi-v7a"
|
system_image = "google_apis;armeabi-v7a"
|
||||||
|
avd_name = "servo-armv7"
|
||||||
|
|
||||||
|
|
||||||
toolchains = path.join(self.context.topdir, "android-toolchains")
|
toolchains = path.join(self.context.topdir, "android-toolchains")
|
||||||
|
@ -109,6 +110,14 @@ class MachCommands(CommandBase):
|
||||||
"emulator",
|
"emulator",
|
||||||
image,
|
image,
|
||||||
])
|
])
|
||||||
|
subprocess.check_call([
|
||||||
|
path.join(tools_path, "tools", "bin", "avdmanager"),
|
||||||
|
"create", "avd",
|
||||||
|
"--path", path.join(toolchains, "avd", avd_name),
|
||||||
|
"--name", avd_name,
|
||||||
|
"--package", image,
|
||||||
|
"--force",
|
||||||
|
])
|
||||||
|
|
||||||
contents = os.listdir(ndk_path)
|
contents = os.listdir(ndk_path)
|
||||||
assert len(contents) == 1
|
assert len(contents) == 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue