Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README for Android #21125

Merged
merged 1 commit into from Jul 5, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Update README for Android

#21094 automates some things.
  • Loading branch information
SimonSapin committed Jul 4, 2018
commit f0275d184bccba43e6d80ea79a91cc393b2825c2
@@ -183,8 +183,8 @@ list of installed components. It is not on by default. Visual Studio 2017 MUST i
#### Cross-compilation for Android

Pre-installed Android tools are needed. See wiki for
[details](https://github.com/servo/servo/wiki/Building-for-Android)
Run `./mach bootstrap-android` to get Android-specific tools. See wiki for
[details](https://github.com/servo/servo/wiki/Building-for-Android).

## The Rust compiler

@@ -240,26 +240,18 @@ though of course it doesn’t produce a binary you can run.

### Building for Android target

``` sh
git clone https://github.com/servo/servo
cd servo
export ANDROID_SDK="/path/to/sdk"
export ANDROID_NDK="/path/to/ndk"
export ANDROID_TOOLCHAIN="/path/to/toolchain"
export PATH="$PATH:/path/to/toolchain/bin"
For ARM (`armv7-linux-androideabi`, most phones):

``` sh
./mach build --release --android
./mach package --release --android
```

Rather than setting the `ANDROID_*` environment variables every time, you can
also create a `.servobuild` file and then edit it to contain the correct paths
to the Android SDK/NDK tools:
For x86 (typically for the emulator):

```
cp servobuild.example .servobuild
# edit .servobuild
```sh
./mach build --release --target i686-linux-android
./mach package --release --target i686-linux-android
```

## Running
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.