Simplify building

This commit is contained in:
Mygod 2019-01-17 17:04:39 +08:00
parent 9b0b3dbb99
commit 4a838a399c
3 changed files with 3 additions and 3 deletions

View file

@ -20,8 +20,6 @@
You can check whether the latest commit builds under UNIX environment by checking CI status. You can check whether the latest commit builds under UNIX environment by checking CI status.
* 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

View file

@ -50,6 +50,8 @@ task goBuild(type: Exec) {
} else { } else {
executable "sh" executable "sh"
args "-c", "src/make.bash " + minSdkVersion args "-c", "src/make.bash " + minSdkVersion
environment "ANDROID_HOME", android.sdkDirectory
environment "ANDROID_NDK_HOME", android.ndkDirectory
} }
} }

View file

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip