This is the first example of an App written entirely in Go that draws to the device screen. Build and run process is driven entirely by all.bash, no need for the Android Studio button mashing in the lib* examples. LGTM=nigeltao R=golang-codereviews, nigeltao, bryanturley CC=golang-codereviews https://golang.org/cl/130420043
18 lines
487 B
Bash
Executable File
18 lines
487 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2014 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
set -e
|
|
|
|
if [ ! -f make.bash ]; then
|
|
echo 'make.bash must be run from $GOPATH/src/code.google.com/p/go.mobile/example/basic'
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p jni/armeabi
|
|
CGO_ENABLED=1 GOOS=android GOARCH=arm GOARM=7 \
|
|
go build -tags gldebug -ldflags="-shared" -o jni/armeabi/libbasic.so .
|
|
ndk-build NDK_DEBUG=1
|
|
ant debug
|