From 1875e83cbaa32f9cfd08224f2ad47e345b152155 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 27 Jan 2021 15:46:36 +0000 Subject: [PATCH] tmpl: add Windows support for the egl tag Google's ANGLE library implements OpenGL ES on top of Windows GPU APIs. Updates #51 Signed-off-by: Elias Naur --- tmpl/procaddr.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmpl/procaddr.tmpl b/tmpl/procaddr.tmpl index 9328262..8b11f0c 100644 --- a/tmpl/procaddr.tmpl +++ b/tmpl/procaddr.tmpl @@ -27,8 +27,9 @@ package {{.Name}} #cgo linux freebsd openbsd CFLAGS: -DTAG_POSIX #cgo !egl,linux !egl,freebsd !egl,openbsd pkg-config: gl -#cgo egl,linux egl,freebsd egl,openbsd CFLAGS: -DTAG_EGL +#cgo egl,linux egl,freebsd egl,openbsd egl,windows CFLAGS: -DTAG_EGL #cgo egl,linux egl,freebsd egl,openbsd pkg-config: egl +#cgo egl,windows LDFLAGS: -lEGL // Check the EGL tag first as it takes priority over the platform's default