Improve portability of genkeys.go

This commit is contained in:
Hajime Hoshi 2020-10-07 02:25:16 +09:00
parent dc288d37f8
commit 946cf1d250

View File

@ -706,9 +706,9 @@ func main() {
// Pass the build tag and extract this in the template to make `go vet` happy. // Pass the build tag and extract this in the template to make `go vet` happy.
buildTag := "" buildTag := ""
switch path { switch path {
case "internal/glfw/keys.go": case filepath.Join("internal", "glfw", "keys.go"):
buildTag = "// +build !js" buildTag = "// +build !js"
case "internal/uidriver/glfw/keys.go": case filepath.Join("internal", "uidriver", "glfw", "keys.go"):
buildTag = "// +build darwin freebsd linux windows" + buildTag = "// +build darwin freebsd linux windows" +
"\n// +build !android" + "\n// +build !android" +
"\n// +build !ios" "\n// +build !ios"