mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add Android build config to mach/servobuild
This commit is contained in:
parent
d4e977a2be
commit
b736256d53
4 changed files with 45 additions and 2 deletions
11
README.md
11
README.md
|
@ -87,12 +87,21 @@ cd servo
|
|||
``` sh
|
||||
git clone https://github.com/servo/servo
|
||||
cd servo
|
||||
ANDROID_TOOLCHAIN=/path/to/toolchain ANDROID_NDK=/path/to/ndk PATH=$PATH:/path/to/toolchain/bin ./mach build --target arm-linux-androideabi
|
||||
ANDROID_TOOLCHAIN=/path/to/toolchain ANDROID_NDK=/path/to/ndk PATH=$PATH:/path/to/toolchain/bin ./mach build --android
|
||||
cd ports/android
|
||||
ANDROID_NDK=/path/to/ndk ANDROID_SDK=/path/to/sdk make
|
||||
ANDROID_SDK=/path/to/sdk make install
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
```
|
||||
cp servobuild.example .servobuild
|
||||
# edit .servobuild
|
||||
```
|
||||
|
||||
## Running
|
||||
|
||||
### Commandline Arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue