fixed build tags for macos and ios

This commit is contained in:
Thomas Friedel 2019-04-02 11:29:18 +02:00
parent 2163c982fd
commit e40654181e
3 changed files with 7 additions and 2 deletions

View file

@ -131,6 +131,10 @@ These features *should* work just like their HTML5 counterparts, but there are l
# Version history
v0.7.2
- Fixed build tags for macOS and iOS
v0.7.1
- Line strokes are now scaled and transformed correctly

View file

@ -16,7 +16,8 @@
//
package gl
// #cgo darwin LDFLAGS: -framework OpenGLES
// #cgo darwin,!ios LDFLAGS: -framework OpenGL
// #cgo darwin,ios LDFLAGS: -framework OpenGLES
// #cgo linux,!android LDFLAGS: -lGL
// #cgo freebsd,!android LDFLAGS: -lGL
// #cgo windows LDFLAGS: -lopengl32

View file

@ -20,7 +20,7 @@ package gl
#cgo windows CFLAGS: -DTAG_WINDOWS
#cgo windows LDFLAGS: -lopengl32
#cgo darwin CFLAGS: -DTAG_DARWIN
#cgo darwin LDFLAGS: -framework OpenGL
#cgo darwin,!ios LDFLAGS: -framework OpenGL
#cgo linux freebsd CFLAGS: -DTAG_POSIX
#cgo linux freebsd LDFLAGS: -lGL
#cgo egl CFLAGS: -DTAG_EGL