example/libhellojni: fix build and allow go get golang.org/x/mobile/...

Change-Id: Id0cd58705c882ea58cedbee5a6e9aff010c0ad4d
Reviewed-on: https://go-review.googlesource.com/1281
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Hana (Hyang-Ah) Kim
2014-12-10 01:38:44 +00:00
committed by Hyang-Ah Hana Kim
parent daf6d8060b
commit 969a1bf7dd
4 changed files with 11 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
// Package java implements the Java language bindings.
//
// See the design document (http://golang.org/s/gobind).
//
// Currently, this works only for android.
package java
+2
View File
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build android
// See main.go for commentary.
#include <android/log.h>
+2
View File
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build android
package main
// #cgo LDFLAGS: -llog
+1 -1
View File
@@ -26,5 +26,5 @@ package main
import "golang.org/x/mobile/app"
func main() {
app.Run()
app.Run(app.Callbacks{})
}