commit | 3e0bab5405d63a8f5dd9d9764a24c8e5ac4997fa | [log] [tgz] |
---|---|---|
author | Daniel Lublin <daniel@lublin.se> | Sun Apr 14 20:50:36 2019 +0200 |
committer | Elias Naur <mail@eliasnaur.com> | Mon Apr 15 19:13:53 2019 +0000 |
tree | e009a2f6b97dd2129726eb9b74480bfdd0ca2589 | |
parent | 28c689b77b5f6eebbba8f17d7e089fe2a3c7cf4c [diff] |
cmd/gomobile: fall back to $ANDROID_NDK_HOME for the NDK path After trying $ANDROID_HOME/ndk-bundle, we also try $ANDROID_NDK_HOME. ANDROID_NDK_HOME is advised in this NDK sample code wiki: https://github.com/googlesamples/android-ndk/wiki Mentioned in the Bazel buildsystem Android app tutorial: https://docs.bazel.build/versions/master/tutorial/android-app.html On Ubuntu, the google-android-ndk-installer leaves the NDK in /usr/lib/android-ndk, and it seems to be up to the user to set ANDROID_NDK_HOME. On Arch Linux, the android-ndk package installs the NDK into /opt/android-ndk and sets ANDROID_NDK_HOME to there using an /etc/profile.d/file Fixes golang/go#31461 Change-Id: I9f7f7e24b19e0047419f9725b67bd6daf2b1d328 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/171938 Run-TryBot: Elias Naur <mail@eliasnaur.com> Reviewed-by: Elias Naur <mail@eliasnaur.com>
The Go mobile repository holds packages and build tools for using Go on mobile platforms.
Package documentation as a starting point:
The Go Mobile project is experimental. Use this at your own risk. While we are working hard to improve it, neither Google nor the Go team can provide end-user support.
This is early work and installing the build system requires Go 1.5. Follow the instructions on golang.org/wiki/Mobile to install the gomobile command, build the basic and the bind example apps.
Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.