github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/mobile/example/basic/make.bash (about)

     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/basic'
    10  	exit 1
    11  fi
    12  
    13  mkdir -p jni/armeabi
    14  CGO_ENABLED=1 GOOS=android GOARCH=arm GOARM=7 \
    15  	go build -ldflags="-shared" -o jni/armeabi/libbasic.so .
    16  ndk-build NDK_DEBUG=1
    17  ant debug