mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
app/internal/window,app/internal/egl: avoid X11 dependency in EGL
EGL is window system agnostic, but its egl.h header includex X11 headers by default. Use the MESA_EGL_NO_X11_HEADERS define to avoid it, fixing the "nox11" build for systems without X11 headers installed. Fixes #91 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -10,6 +10,7 @@ package egl
|
|||||||
#cgo freebsd LDFLAGS: -L/usr/local/lib
|
#cgo freebsd LDFLAGS: -L/usr/local/lib
|
||||||
#cgo openbsd CFLAGS: -I/usr/X11R6/include
|
#cgo openbsd CFLAGS: -I/usr/X11R6/include
|
||||||
#cgo openbsd LDFLAGS: -L/usr/X11R6/lib
|
#cgo openbsd LDFLAGS: -L/usr/X11R6/lib
|
||||||
|
#cgo CFLAGS: -DMESA_EGL_NO_X11_HEADERS
|
||||||
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo LDFLAGS: -lwayland-egl
|
#cgo LDFLAGS: -lwayland-egl
|
||||||
#cgo CFLAGS: -I/usr/include/wayland
|
#cgo CFLAGS: -I/usr/include/wayland -DMESA_EGL_NO_X11_HEADERS
|
||||||
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user