mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
Add go:build comments with go1.17beta1 fmt
This commit is contained in:
parent
f1fc6fe3e8
commit
b54ad73a2b
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package audio
|
package audio
|
||||||
|
@ -12,9 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build !android
|
//go:build !android && !ios && !js
|
||||||
// +build !ios
|
// +build !android,!ios,!js
|
||||||
// +build !js
|
|
||||||
|
|
||||||
package audio
|
package audio
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin && !ios
|
||||||
// +build darwin,!ios
|
// +build darwin,!ios
|
||||||
|
|
||||||
package readerdriver
|
package readerdriver
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (aix || dragonfly || freebsd || hurd || illumos || linux || netbsd || openbsd || solaris) && !android
|
||||||
// +build aix dragonfly freebsd hurd illumos linux netbsd openbsd solaris
|
// +build aix dragonfly freebsd hurd illumos linux netbsd openbsd solaris
|
||||||
// +build !android
|
// +build !android
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build aix || dragonfly || freebsd || hurd || illumos || linux || netbsd || openbsd || solaris
|
||||||
// +build aix dragonfly freebsd hurd illumos linux netbsd openbsd solaris
|
// +build aix dragonfly freebsd hurd illumos linux netbsd openbsd solaris
|
||||||
|
|
||||||
package readerdriver
|
package readerdriver
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ebitenmobilegobind
|
||||||
// +build ebitenmobilegobind
|
// +build ebitenmobilegobind
|
||||||
|
|
||||||
// gobind is a wrapper of the original gobind. This command adds extra files like a view controller.
|
// gobind is a wrapper of the original gobind. This command adds extra files like a view controller.
|
||||||
@ -146,6 +147,7 @@ func run() error {
|
|||||||
|
|
||||||
const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build ios
|
||||||
// +build ios
|
// +build ios
|
||||||
|
|
||||||
#import <TargetConditionals.h>
|
#import <TargetConditionals.h>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -112,11 +112,15 @@ func prepareGomobileCommands() (string, error) {
|
|||||||
os.Chdir(pwd)
|
os.Chdir(pwd)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
const modname = "ebitenmobiletemporary"
|
const (
|
||||||
|
modname = "ebitenmobiletemporary"
|
||||||
|
buildtags = "//go:build tools" +
|
||||||
|
"\n// +build tools"
|
||||||
|
)
|
||||||
if err := runGo("mod", "init", modname); err != nil {
|
if err := runGo("mod", "init", modname); err != nil {
|
||||||
return tmp, err
|
return tmp, err
|
||||||
}
|
}
|
||||||
if err := ioutil.WriteFile("tools.go", []byte(fmt.Sprintf(`// +build tools
|
if err := ioutil.WriteFile("tools.go", []byte(fmt.Sprintf(`%s
|
||||||
|
|
||||||
package %s
|
package %s
|
||||||
|
|
||||||
@ -124,7 +128,7 @@ import (
|
|||||||
_ "golang.org/x/mobile/cmd/gobind"
|
_ "golang.org/x/mobile/cmd/gobind"
|
||||||
_ "golang.org/x/mobile/cmd/gomobile"
|
_ "golang.org/x/mobile/cmd/gomobile"
|
||||||
)
|
)
|
||||||
`, modname)), 0644); err != nil {
|
`, buildtags, modname)), 0644); err != nil {
|
||||||
return tmp, err
|
return tmp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ebitendebug
|
||||||
// +build ebitendebug
|
// +build ebitendebug
|
||||||
|
|
||||||
package ebiten
|
package ebiten
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !ebitendebug
|
||||||
// +build !ebitendebug
|
// +build !ebitendebug
|
||||||
|
|
||||||
package ebiten
|
package ebiten
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || linux || windows) && !js && !android && !ios
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !js
|
// +build !js
|
||||||
// +build !android
|
// +build !android
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || js || linux || windows) && !android && !ios
|
||||||
// +build darwin freebsd js linux windows
|
// +build darwin freebsd js linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
// +build !ios
|
// +build !ios
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// The key name convention follows the Web standard: https://www.w3.org/TR/uievents-code/#keyboard-key-codes
|
// The key name convention follows the Web standard: https://www.w3.org/TR/uievents-code/#keyboard-key-codes
|
||||||
@ -814,9 +815,11 @@ func main() {
|
|||||||
buildTag := ""
|
buildTag := ""
|
||||||
switch path {
|
switch path {
|
||||||
case filepath.Join("internal", "glfw", "keys.go"):
|
case filepath.Join("internal", "glfw", "keys.go"):
|
||||||
buildTag = "// +build !js"
|
buildTag = "//go:build !js" +
|
||||||
|
"\n// +build !js"
|
||||||
case filepath.Join("internal", "uidriver", "glfw", "keys.go"):
|
case filepath.Join("internal", "uidriver", "glfw", "keys.go"):
|
||||||
buildTag = "// +build darwin freebsd linux windows" +
|
buildTag = "//go:build (darwin || freebsd || linux || windows) && !android && !ios" +
|
||||||
|
"\n// +build darwin freebsd linux windows" +
|
||||||
"\n// +build !android" +
|
"\n// +build !android" +
|
||||||
"\n// +build !ios"
|
"\n// +build !ios"
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build go1.13
|
||||||
// +build go1.13
|
// +build go1.13
|
||||||
|
|
||||||
package ebiten
|
package ebiten
|
||||||
|
@ -12,9 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build !android
|
//go:build !android && !js && !ios
|
||||||
// +build !js
|
// +build !android,!js,!ios
|
||||||
// +build !ios
|
|
||||||
|
|
||||||
package ebiten
|
package ebiten
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || js || ios
|
||||||
// +build android js ios
|
// +build android js ios
|
||||||
|
|
||||||
package ebiten
|
package ebiten
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ebitendebug
|
||||||
// +build ebitendebug
|
// +build ebitendebug
|
||||||
|
|
||||||
package debug
|
package debug
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !ebitendebug
|
||||||
// +build !ebitendebug
|
// +build !ebitendebug
|
||||||
|
|
||||||
package debug
|
package debug
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (dragonfly || freebsd || linux || netbsd || openbsd || solaris) && !android
|
||||||
// +build dragonfly freebsd linux netbsd openbsd solaris
|
// +build dragonfly freebsd linux netbsd openbsd solaris
|
||||||
// +build !android
|
// +build !android
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ios
|
||||||
// +build ios
|
// +build ios
|
||||||
|
|
||||||
package devicescale
|
package devicescale
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
//go:build darwin && !ios
|
||||||
// +build !ios
|
// +build darwin,!ios
|
||||||
|
|
||||||
package devicescale
|
package devicescale
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (dragonfly || freebsd || linux || netbsd || openbsd || solaris) && !android
|
||||||
// +build dragonfly freebsd linux netbsd openbsd solaris
|
// +build dragonfly freebsd linux netbsd openbsd solaris
|
||||||
// +build !android
|
// +build !android
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
// +build !js
|
// +build !js
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build !windows
|
//go:build !windows && !js
|
||||||
// +build !js
|
// +build !windows,!js
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
// +build !js
|
// +build !js
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build tools
|
||||||
// +build tools
|
// +build tools
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
// +build !js
|
// +build !js
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
// Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
|
// Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
package metal
|
package metal
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
package mtl_test
|
package mtl_test
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
// Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
|
// Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
package mtl_test
|
package mtl_test
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
// Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
|
// Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
package metal
|
package metal
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
package metal
|
package metal
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
//go:build darwin && ios
|
||||||
// +build ios
|
// +build darwin,ios
|
||||||
|
|
||||||
package metal
|
package metal
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
//go:build darwin && !ios
|
||||||
// +build !ios
|
// +build darwin,!ios
|
||||||
|
|
||||||
package metal
|
package metal
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || linux || windows) && !android && !ios
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
// +build !ios
|
// +build !ios
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !ebitenwebgl1
|
||||||
// +build !ebitenwebgl1
|
// +build !ebitenwebgl1
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || js || (!freebsd && !linux)
|
||||||
// +build android js !freebsd,!linux
|
// +build android js !freebsd,!linux
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ebitenwebgl1
|
||||||
// +build ebitenwebgl1
|
// +build ebitenwebgl1
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (freebsd || linux) && !android
|
||||||
// +build freebsd linux
|
// +build freebsd linux
|
||||||
// +build !android
|
// +build !android
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package gl
|
package gl
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
// This document is licensed under the SGI Free Software B License.
|
// This document is licensed under the SGI Free Software B License.
|
||||||
// For details, see http://oss.sgi.com/projects/FreeB.
|
// For details, see http://oss.sgi.com/projects/FreeB.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
// +build !js
|
// +build !js
|
||||||
|
|
||||||
// Package gl implements Go bindings to OpenGL.
|
// Package gl implements Go bindings to OpenGL.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package gl
|
package gl
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
//go:build freebsd || linux
|
||||||
// +build freebsd linux
|
// +build freebsd linux
|
||||||
|
|
||||||
package gl
|
package gl
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
// This file implements GlowGetProcAddress for every supported platform. The
|
// This file implements GlowGetProcAddress for every supported platform. The
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package gles
|
package gles
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package gles
|
package gles
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package gles
|
package gles
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package gles
|
package gles
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
@ -12,9 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build !android
|
//go:build !android && !js && !ios
|
||||||
// +build !js
|
// +build !android,!js,!ios
|
||||||
// +build !ios
|
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
|
//go:build gofuzz
|
||||||
// +build gofuzz
|
// +build gofuzz
|
||||||
|
|
||||||
package png
|
package png
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build !android
|
//go:build !android && !js
|
||||||
// +build !js
|
// +build !android,!js
|
||||||
|
|
||||||
package restorable
|
package restorable
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
// +build !js
|
// +build !js
|
||||||
|
|
||||||
// Package testflock provides a lock for testing.
|
// Package testflock provides a lock for testing.
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !ebitengl
|
||||||
// +build !ebitengl
|
// +build !ebitengl
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build freebsd || linux || windows || ebitengl
|
||||||
// +build freebsd linux windows ebitengl
|
// +build freebsd linux windows ebitengl
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !windows || js
|
||||||
// +build !windows js
|
// +build !windows js
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || linux || windows) && !android && !ios
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
// +build !ios
|
// +build !ios
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || linux || windows) && !android && !ios
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
// +build !ios
|
// +build !ios
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !ebitensinglethread && (darwin || freebsd || linux || windows) && !android && !ios
|
||||||
// +build !ebitensinglethread
|
// +build !ebitensinglethread
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ebitensinglethread && (darwin || freebsd || linux || windows) && !android && !ios
|
||||||
// +build ebitensinglethread
|
// +build ebitensinglethread
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || linux || windows) && !android && !ios
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
// +build !ios
|
// +build !ios
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !ios
|
||||||
// +build !ios
|
// +build !ios
|
||||||
|
|
||||||
package glfw
|
package glfw
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (dragonfly || freebsd || linux || netbsd || openbsd || solaris) && !android
|
||||||
// +build dragonfly freebsd linux netbsd openbsd solaris
|
// +build dragonfly freebsd linux netbsd openbsd solaris
|
||||||
// +build !android
|
// +build !android
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || linux || windows) && !android && !ios
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
// +build !ios
|
// +build !ios
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build ((ios && arm) || (ios && arm64)) && !ebitengl
|
||||||
// +build ios,arm ios,arm64
|
// +build ios,arm ios,arm64
|
||||||
// +build !ebitengl
|
// +build !ebitengl
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || (ios && 386) || (ios && amd64) || (ios && ebitengl)
|
||||||
// +build android ios,386 ios,amd64 ios,ebitengl
|
// +build android ios,386 ios,amd64 ios,ebitengl
|
||||||
|
|
||||||
package mobile
|
package mobile
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package mobile
|
package mobile
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package mobile
|
package mobile
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
// +build !js
|
// +build !js
|
||||||
|
|
||||||
package web
|
package web
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package mobile
|
package mobile
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build !android
|
//go:build !android && !ios
|
||||||
// +build !ios
|
// +build !android,!ios
|
||||||
|
|
||||||
package mobile
|
package mobile
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || linux || windows) && !android && !ios && !js
|
||||||
// +build darwin freebsd linux windows
|
// +build darwin freebsd linux windows
|
||||||
// +build !android
|
// +build !android
|
||||||
// +build !ios
|
// +build !ios
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build android || ios
|
||||||
// +build android ios
|
// +build android ios
|
||||||
|
|
||||||
package ebiten
|
package ebiten
|
||||||
|
Loading…
Reference in New Issue
Block a user