[mirror] Go on Mobile https://golang.org/x/mobile
Go to file
Elias Naur 3212b34dba cmd/gomobile: replace stripped NDK with external NDK
Gomobile has up until now used stripped NDKs hosted by Google. This
arrangement adds maintenance overhead and blocks the use of custom
NDKs or custom API levels. Also, as noted in issue 16211, the stripped
NDK is no longer tiny because Gomobile supports more platforms.

This CL removed the code for generating and packaging stripped NDKs and
adds support for using external NDKs to the gomobile tool.

gomobile init will now use the NDK installed by the Android SDK manager,
if present, or a user specified NDK if the -ndk flag is given. If no
NDK was found or specified, Android initialization is skipped. gomobile
will instruct the user to run init with a valid NDK if bind or build is
invoked without Android initialization.

gomobile init will also attempt to build OpenAL for Android if the -openal
flag specifies a source directory. It needs cmake and, on Windows, nmake
installed. If gomobile build is run on an app that requires
golang.org/x/mobile/exp/audio/al and OpenAL wasn't built by init, the user
is instructed to do so.

Tested on Linux, macOS, Windows.

Fixes golang/go#16211
Fixes golang/go#18522

Change-Id: Ia38f6e43e671a207dad562678c65225b426e7e3e
Reviewed-on: https://go-review.googlesource.com/35173
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-01-17 21:04:41 +00:00
app event/size: document size pt approximation 2016-08-04 01:15:58 +00:00
asset asset,exp/audio/al: cast context to jobject 2016-01-11 21:23:51 +00:00
bind bind,internal/importers: handle Java long constants correctly 2017-01-17 15:58:41 +00:00
cmd cmd/gomobile: replace stripped NDK with external NDK 2017-01-17 21:04:41 +00:00
doc README.md: add caution. shorten the README.md. 2015-07-17 17:06:14 +00:00
event event/size: document size pt approximation 2016-08-04 01:15:58 +00:00
example bind,misc: guard reverse generated import with mobile os tags 2017-01-17 14:22:42 +00:00
exp exp/audio/al: use the correct native library dir to locate libopenal.so 2017-01-13 01:38:11 +00:00
geom app: use one thread for both GL and other UI C code. 2015-06-26 07:43:17 +00:00
gl x/mobile/gl: fix building on windows/386 2016-10-26 17:46:18 +00:00
internal bind,internal/importers: handle Java long constants correctly 2017-01-17 15:58:41 +00:00
misc/androidstudio misc/androidstudio: fix the classpath for gobind and gomobile 2017-01-17 14:22:50 +00:00
testdata example/sprite: make example lives 2014-12-22 13:10:48 +00:00
.gitattributes mobile: copying .gitattributes to all subrepositories 2014-12-23 23:23:25 +00:00
.gitignore .gitignore: remove *.xcodeproj 2015-09-03 14:46:33 +00:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
CONTRIBUTING.md doc: add CONTRIBUTING.md 2015-02-18 23:42:31 +00:00
CONTRIBUTORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
LICENSE LICENSE: add 2012-03-17 15:20:58 +11:00
PATENTS go.empty: add PATENTS file to the subrepo. 2012-04-16 11:24:04 +10:00
README.md docs: provide a template for the new issues 2015-10-06 05:09:24 +00:00
codereview.cfg mobile: add codereview.cfg 2015-03-18 17:03:44 +00:00

README.md

Go support for Mobile devices

The Go mobile repository holds packages and build tools for using Go on mobile platforms.

Package documentation as a starting point:

Caution image

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.