ui: add egl-headless support on win32

Make GBM optional for EGL code, and enable the build for win32.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230606115658.677673-13-marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2023-06-06 15:56:49 +04:00
parent 48dddba176
commit 39324b4966
5 changed files with 55 additions and 21 deletions

View file

@ -65,10 +65,10 @@ if opengl.found()
ui_modules += {'opengl' : opengl_ss}
endif
if opengl.found() and gbm.found()
if opengl.found()
egl_headless_ss = ss.source_set()
egl_headless_ss.add(when: [opengl, gbm, pixman],
if_true: files('egl-headless.c'))
egl_headless_ss.add(when: [opengl, pixman],
if_true: [files('egl-headless.c'), gbm])
ui_modules += {'egl-headless' : egl_headless_ss}
endif