Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: third_party/go/src/golang.org/x/mobile/example/libhellojni/make.bash

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 # See main.go for commentary.
7
8 set -e
9
10 if [ ! -f make.bash ]; then
11 echo 'make.bash must be run from $GOPATH/src/golang.org/x/mobile/example /libhellojni'
12 exit 1
13 fi
14 if [ -z "$ANDROID_APP" ]; then
15 echo 'ERROR: Environment variable ANDROID_APP is unset.'
16 exit 1
17 fi
18
19 mkdir -p $ANDROID_APP/src/main/jniLibs/armeabi \
20 $ANDROID_APP/src/main/java/go \
21 $ANDROID_APP/src/main/java/demo
22 (cd ../.. && ln -sf $PWD/app/*.java $ANDROID_APP/src/main/java/go)
23 (cd ../.. && ln -sf $PWD/bind/java/*.java $ANDROID_APP/src/main/java/go)
24 ln -sf $PWD/*.java $ANDROID_APP/src/main/java/demo
25 CGO_ENABLED=1 GOOS=android GOARCH=arm GOARM=7 \
26 go build -ldflags="-shared" .
27 mv libhellojni $ANDROID_APP/src/main/jniLibs/armeabi/libgojni.so
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698