aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-05-24 03:09:29 -0700
committerbors-servo <lbergstrom+bors@mozilla.com>2016-05-24 03:09:29 -0700
commite18bf819059e4439d276b02083a60f6353aaa359 (patch)
tree416f9763217f53f7f7b9d134729b61258f82586e
parent6abcd793d780369767385b01b02ee725d6b10585 (diff)
parent6dc78031873d117446a553bc1c34f5b1400fd72f (diff)
downloadservo-e18bf819059e4439d276b02083a60f6353aaa359.tar.gz
servo-e18bf819059e4439d276b02083a60f6353aaa359.zip
Auto merge of #11360 - mmatyas:readme_androidbuild, r=Manishearth
Update Android build instructions in README The Android build instructions haven't been updated for a while in the README; instead of `cd ports/android && ANDROID_SDK=/path/to/sdk make install`, we have `./mach package --release` now. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11360) <!-- Reviewable:end -->
-rw-r--r--README.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/README.md b/README.md
index 23a18ba80a2..8e8210422b9 100644
--- a/README.md
+++ b/README.md
@@ -143,9 +143,14 @@ real-world use, add the `--release` flag to create an optimized build:
``` 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 --android
-cd ports/android
-ANDROID_SDK=/path/to/sdk make install
+
+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"
+
+./mach build --release --android
+./mach package --release
```
Rather than setting the `ANDROID_*` environment variables every time, you can