1
0
mirror of https://github.com/golang/go synced 2024-11-23 02:00:03 -07:00
go/misc/android
Ben Shi 5776bd558f misc/android: add a NL at the of README
There is no NL at the end of README, and that make it strange
when doing "cat misc/android/README".

Change-Id: Ib47953d7b16e8927a4d6be7d5be8de8f2ddbcc39
Reviewed-on: https://go-review.googlesource.com/114010
Reviewed-by: Elias Naur <elias.naur@gmail.com>
2018-05-23 05:54:14 +00:00
..
cleaner.go misc/android: cleaner to remove stale GOROOT files 2015-05-25 20:52:10 +00:00
go_android_exec.go misc,src: add support for specifying adb flags to the android harness 2018-01-20 21:13:30 +00:00
README misc/android: add a NL at the of README 2018-05-23 05:54:14 +00:00

Android
=======

For details on developing Go for Android, see the documentation in the
mobile subrepository:

	https://github.com/golang/mobile

To run the standard library tests, see androidtest.bash. Run it as

	CC_FOR_TARGET=$STANDALONE_NDK_PATH/bin/clang GOARCH=arm64 ./androidtest.bash

To create a standalone android NDK tool chain, follow the instructions on

	https://developer.android.com/ndk/guides/standalone_toolchain

To run tests on the Android device, add the bin directory to PATH so the
go tool can find the go_android_$GOARCH_exec wrapper generated by
androidtest.bash. Then, use the same GOARCH as when androidtest.bash ran
and set GOOS to android. For example, to run the go1 benchmarks

	export PATH=$GOROOT/bin:$PATH
	cd $GOROOT/test/bench/go1/
	GOOS=android GOARCH=arm64 go test -bench=. -count=N -timeout=T