mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
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:
committed by
Hyang-Ah Hana Kim
parent
daf6d8060b
commit
969a1bf7dd
@@ -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,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,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
|
||||
|
||||
@@ -26,5 +26,5 @@ package main
|
||||
import "golang.org/x/mobile/app"
|
||||
|
||||
func main() {
|
||||
app.Run()
|
||||
app.Run(app.Callbacks{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user