mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Bug fix: Compile error for Wasm
This commit is contained in:
parent
ee4ebaaa95
commit
dc288d37f8
@ -706,6 +706,8 @@ 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":
|
||||
buildTag = "// +build !js"
|
||||
case "internal/uidriver/glfw/keys.go":
|
||||
buildTag = "// +build darwin freebsd linux windows" +
|
||||
"\n// +build !android" +
|
||||
|
@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// +build !js
|
||||
|
||||
package glfw
|
||||
|
||||
import (
|
||||
|
@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// +bulid !js
|
||||
|
||||
//go:generate sh ./gen.sh
|
||||
|
||||
package glfw
|
||||
|
@ -13,6 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
// +build !windows
|
||||
// +build !js
|
||||
|
||||
package glfw
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
|
||||
|
||||
// +build !js
|
||||
|
||||
package glfw
|
||||
|
||||
const (
|
||||
|
@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// +build !js
|
||||
|
||||
package glfw
|
||||
|
||||
type (
|
||||
|
@ -9,6 +9,8 @@
|
||||
// This document is licensed under the SGI Free Software B License.
|
||||
// For details, see http://oss.sgi.com/projects/FreeB.
|
||||
|
||||
// +build !js
|
||||
|
||||
// Package gl implements Go bindings to OpenGL.
|
||||
package gl
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user