[mirror] Go on Mobile
Перейти к файлу
David Crawshaw e27dbf7bf9 go.mobile/app: an exceedingly simple display loop
Missing many features (like event processing). This is
just enough to get example/basic working.

LGTM=nigeltao
R=golang-codereviews, capnm9, bryanturley, nigeltao, crawshaw
CC=golang-codereviews
https://golang.org/cl/131030043
2014-09-09 19:51:04 -04:00
app go.mobile/app: an exceedingly simple display loop 2014-09-09 19:51:04 -04:00
bind go.mobile: break dependency on gobind 2014-09-03 09:03:00 -04:00
cmd/gobind go.mobile/cmd/gobind: newline after printing errors 2014-08-12 14:29:18 -04:00
example go.mobile/example: give library examples a lib prefix 2014-09-03 09:28:47 -04:00
geom go.mobile/geom: coordinate system and unit of length 2014-09-04 09:02:06 -04:00
gl go.mobile/gl/glutil: OpenGL utilities package 2014-09-05 14:02:43 -04:00
.hgignore .hgignore: add comment setting policy 2013-12-20 16:28:21 -08:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05: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 go.mobile: update readme, add build instructions 2014-07-23 09:46:19 -07:00
codereview.cfg codereview: switch defaultcc to golang-codereviews 2013-12-20 10:57:06 -05:00

README

The go.mobile repository holds libraries and build tools for Go on Android.

This is early stage work. The build system integration is not ready.
For now,

1. Install Android Studio.
2. Install the Android NDK.
3. Pick a home for the standalone NDK toolchain and set an environment variable:
	NDK_ROOT=$HOME/android/ndk-toolchain
4. Confiure the NDK toolchain:
	ndk/build/tools/make-standalone-toolchain.sh \
		--platform=android-9 --install-dir=$NDK_ROOT
5. Create an android App in studio, then set
	ANDROID_APP=$HOME/android/studio/yourapp/app

With these two environment variables, the make.bash script in
go.mobile/example/hello_jni builds a .so file and symlinks in
the necessary java files to the project.

To submit changes to this repository, see http://golang.org/doc/contribute.html.