From e40654181e357f3a9534ff72b69f537b79b331be Mon Sep 17 00:00:00 2001 From: Thomas Friedel Date: Tue, 2 Apr 2019 11:29:18 +0200 Subject: [PATCH] fixed build tags for macos and ios --- README.md | 4 ++++ backend/gogl/gl/package.go | 3 ++- backend/gogl/gl/procaddr.go | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a781807..6d4deb8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/backend/gogl/gl/package.go b/backend/gogl/gl/package.go index 3791b18..46e3c13 100644 --- a/backend/gogl/gl/package.go +++ b/backend/gogl/gl/package.go @@ -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 diff --git a/backend/gogl/gl/procaddr.go b/backend/gogl/gl/procaddr.go index 5059d2a..4190c9b 100644 --- a/backend/gogl/gl/procaddr.go +++ b/backend/gogl/gl/procaddr.go @@ -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