mirror of
https://github.com/go-i2p/gomobile-java.git
synced 2025-07-13 20:41:37 -04:00
all: support go get golang.org/x/mobile/... on Windows
Fixes golang/go#12212 Workaround for golang/go#12261 until golang/go#9306 is fixed. Change-Id: I51c1bcfc92c1553fe2132586a0234b1c1af6aeb1 Reviewed-on: https://go-review.googlesource.com/13745 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:

committed by
Hyang-Ah Hana Kim

parent
48bd7cbbc7
commit
49a82fefe3
@ -4,18 +4,6 @@
|
|||||||
|
|
||||||
// +build darwin linux
|
// +build darwin linux
|
||||||
|
|
||||||
// Package asset provides access to application-bundled assets.
|
|
||||||
//
|
|
||||||
// On Android, assets are accessed via android.content.res.AssetManager.
|
|
||||||
// These files are stored in the assets/ directory of the app. Any raw asset
|
|
||||||
// can be accessed by its direct relative name. For example assets/img.png
|
|
||||||
// can be opened with Open("img.png").
|
|
||||||
//
|
|
||||||
// On iOS an asset is a resource stored in the application bundle.
|
|
||||||
// Resources can be loaded using the same relative paths.
|
|
||||||
//
|
|
||||||
// For consistency when debugging on a desktop, assets are read from a
|
|
||||||
// directory named assets under the current working directory.
|
|
||||||
package asset
|
package asset
|
||||||
|
|
||||||
import "io"
|
import "io"
|
||||||
|
17
asset/doc.go
Normal file
17
asset/doc.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Package asset provides access to application-bundled assets.
|
||||||
|
//
|
||||||
|
// On Android, assets are accessed via android.content.res.AssetManager.
|
||||||
|
// These files are stored in the assets/ directory of the app. Any raw asset
|
||||||
|
// can be accessed by its direct relative name. For example assets/img.png
|
||||||
|
// can be opened with Open("img.png").
|
||||||
|
//
|
||||||
|
// On iOS an asset is a resource stored in the application bundle.
|
||||||
|
// Resources can be loaded using the same relative paths.
|
||||||
|
//
|
||||||
|
// For consistency when debugging on a desktop, assets are read from a
|
||||||
|
// directory named assets under the current working directory.
|
||||||
|
package asset
|
@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin linux
|
||||||
|
|
||||||
// Package testpkg contains bound functions for testing the cgo-JNI interface.
|
// Package testpkg contains bound functions for testing the cgo-JNI interface.
|
||||||
// This is used in tests of golang.org/x/mobile/bind/java.
|
// This is used in tests of golang.org/x/mobile/bind/java.
|
||||||
package testpkg
|
package testpkg
|
||||||
|
10
example/audio/main_x.go
Normal file
10
example/audio/main_x.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !darwin,!linux
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
}
|
10
example/basic/main_x.go
Normal file
10
example/basic/main_x.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
// Copyright 2014 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !darwin,!linux
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
}
|
10
example/network/main_x.go
Normal file
10
example/network/main_x.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !darwin,!linux
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
}
|
10
example/sprite/main_x.go
Normal file
10
example/sprite/main_x.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
// Copyright 2014 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !darwin,!linux
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
}
|
@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin linux
|
||||||
|
|
||||||
// Package debug provides GL-based debugging tools for apps.
|
// Package debug provides GL-based debugging tools for apps.
|
||||||
package debug // import "golang.org/x/mobile/exp/app/debug"
|
package debug // import "golang.org/x/mobile/exp/app/debug"
|
||||||
|
|
||||||
|
6
exp/gl/glutil/doc.go
Normal file
6
exp/gl/glutil/doc.go
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2014 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Package glutil implements OpenGL utility functions.
|
||||||
|
package glutil // import "golang.org/x/mobile/exp/gl/glutil"
|
@ -2,7 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Package glutil implements OpenGL utility functions.
|
// +build darwin linux
|
||||||
|
|
||||||
package glutil // import "golang.org/x/mobile/exp/gl/glutil"
|
package glutil // import "golang.org/x/mobile/exp/gl/glutil"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin linux
|
||||||
|
|
||||||
// Package sensor provides sensor events from various movement sensors.
|
// Package sensor provides sensor events from various movement sensors.
|
||||||
package sensor // import "golang.org/x/mobile/exp/sensor"
|
package sensor // import "golang.org/x/mobile/exp/sensor"
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin linux
|
||||||
|
|
||||||
// Package glsprite implements a sprite Engine using OpenGL ES 2.
|
// Package glsprite implements a sprite Engine using OpenGL ES 2.
|
||||||
//
|
//
|
||||||
// Each sprite.Texture is loaded as a GL texture object and drawn
|
// Each sprite.Texture is loaded as a GL texture object and drawn
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin linux
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "_cgo_export.h"
|
#include "_cgo_export.h"
|
||||||
#include "work.h"
|
#include "work.h"
|
||||||
|
Reference in New Issue
Block a user