Commit ee9828b7 authored by Mygod's avatar Mygod

Simplify building

parent bcb94fef
...@@ -26,8 +26,6 @@ You can check whether the latest commit builds under UNIX environment by checkin ...@@ -26,8 +26,6 @@ You can check whether the latest commit builds under UNIX environment by checkin
Building on Windows is also possible since [#1570](https://github.com/shadowsocks/shadowsocks-android/pull/1570), Building on Windows is also possible since [#1570](https://github.com/shadowsocks/shadowsocks-android/pull/1570),
but probably painful. Further contributions regarding building on Windows are also welcome. but probably painful. Further contributions regarding building on Windows are also welcome.
* Set environment variable `ANDROID_HOME` to `/path/to/android-sdk`
* (optional) Set environment variable `ANDROID_NDK_HOME` to `/path/to/android-ndk` (default: `$ANDROID_HOME/ndk-bundle`)
* Clone the repo using `git clone --recurse-submodules <repo>` or update submodules using `git submodule update --init --recursive` * Clone the repo using `git clone --recurse-submodules <repo>` or update submodules using `git submodule update --init --recursive`
* Build it using Android Studio or gradle script * Build it using Android Studio or gradle script
......
...@@ -53,6 +53,8 @@ task goBuild(type: Exec) { ...@@ -53,6 +53,8 @@ task goBuild(type: Exec) {
} else { } else {
executable "sh" executable "sh"
args "-c", "src/overture/make.bash " + minSdkVersion args "-c", "src/overture/make.bash " + minSdkVersion
environment "ANDROID_HOME", android.sdkDirectory
environment "ANDROID_NDK_HOME", android.ndkDirectory
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment