aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-07-02 13:02:07 -0400
committerGitHub <noreply@github.com>2018-07-02 13:02:07 -0400
commit1f9b07637ea960f6b3d4004f832951ad9b6b48ed (patch)
tree6d8ab5ad13609db1658e4713857942fcdcf37d27 /components/script/task_source
parentc71c55e542c57f6ec4e5e77be750f74f50340e56 (diff)
parentc0d1b8e80861e75f7f3e76660675e88d963b81bb (diff)
downloadservo-1f9b07637ea960f6b3d4004f832951ad9b6b48ed.tar.gz
servo-1f9b07637ea960f6b3d4004f832951ad9b6b48ed.zip
Auto merge of #21094 - servo:bootstrap-android, r=paul
Add mach bootstrap-android and test-android-startup commands This adds a `./mach boostrap-android` subcommand that downloads and installs the tools, SDK, NDK, emulator, and system image for Android. In an environment that can build Servo at all, this should be enough to get all additional dependencies to cross-compile to Android, package an APK, and load it onto a device or an emulator. At the moment it requires an interactive user to accept the license (and confirm no customization of the emulated virtual device hardware), and then prints environment variables to set for `mach` as well as the command to run to start the emulator (with an already-configured image). A possible next step could be to automate all this, and have `./mach build` run it automatically when needed. (I don’t know if auto-accepting the license is something we should do though.) This also adds `--emulator` and `--usb` parameters to `./mach install --android` and `./mach run --android`, which tell `adb` what device to pick when both are present. And makes `./mach run --android` print the new process’s PID, for use with e.g. `adb -e logcat --pid 2263`. Finally, adds the `./mach boostrap-android` subcommand which starts an emulator, installs the APK (it assumes that `mach build` and `mach package` were already executed), runs a single HTML test case, and checks for a message coming from JS through `console.log()` and `adb logcat`. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21094) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/task_source')
0 files changed, 0 insertions, 0 deletions