mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Improve portability of genkeys.go
This commit is contained in:
parent
dc288d37f8
commit
946cf1d250
@ -706,9 +706,9 @@ func main() {
|
||||
// Pass the build tag and extract this in the template to make `go vet` happy.
|
||||
buildTag := ""
|
||||
switch path {
|
||||
case "internal/glfw/keys.go":
|
||||
case filepath.Join("internal", "glfw", "keys.go"):
|
||||
buildTag = "// +build !js"
|
||||
case "internal/uidriver/glfw/keys.go":
|
||||
case filepath.Join("internal", "uidriver", "glfw", "keys.go"):
|
||||
buildTag = "// +build darwin freebsd linux windows" +
|
||||
"\n// +build !android" +
|
||||
"\n// +build !ios"
|
||||
|
Loading…
Reference in New Issue
Block a user