| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env bash | |
| 2 # Copyright 2014 The Go Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style | |
| 4 # license that can be found in the LICENSE file. | |
| 5 | |
| 6 set -e | |
| 7 | |
| 8 if [ ! -f make.bash ]; then | |
| 9 echo 'make.bash must be run from $GOPATH/src/golang.org/x/mobile/example
/libhello' | |
| 10 exit 1 | |
| 11 fi | |
| 12 | |
| 13 mkdir -p libs/armeabi-v7a src/go/hi | |
| 14 ANDROID_APP=$PWD | |
| 15 (cd ../.. && ln -sf $PWD/app/*.java $ANDROID_APP/src/go) | |
| 16 (cd ../.. && ln -sf $PWD/bind/java/Seq.java $ANDROID_APP/src/go) | |
| 17 CGO_ENABLED=1 GOOS=android GOARCH=arm GOARM=7 \ | |
| 18 go build -ldflags="-shared" . | |
| 19 mv -f libhello libs/armeabi-v7a/libgojni.so | |
| 20 ant debug | |
| OLD | NEW |