"Fossies" - the Fresh Open Source Software Archive

Member "go/misc/android/README" (9 Sep 2020, 732 Bytes) of package /windows/misc/go1.14.9.windows-386.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 Android
    2 =======
    3 
    4 For details on developing Go for Android, see the documentation in the
    5 mobile subrepository:
    6 
    7 	https://github.com/golang/mobile
    8 
    9 To run the standard library tests, enable Cgo and use an appropriate
   10 C compiler from the Android NDK. For example,
   11 
   12 	CGO_ENABLED=1 \
   13 	GOOS=android \
   14 	GOARCH=arm64 \
   15 	CC_FOR_TARGET=$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang \
   16 	./all.bash
   17 
   18 To run tests on the Android device, add the bin directory to PATH so the
   19 go tool can find the go_android_$GOARCH_exec wrapper generated by
   20 make.bash. For example, to run the go1 benchmarks
   21 
   22 	export PATH=$GOROOT/bin:$PATH
   23 	cd $GOROOT/test/bench/go1/
   24 	GOOS=android GOARCH=arm64 go test -bench=. -count=N -timeout=T
   25