summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdk/win32/meson.build b/gdk/win32/meson.build
index 2a1cbe403b..1941fb7f3e 100644
--- a/gdk/win32/meson.build
+++ b/gdk/win32/meson.build
@@ -43,6 +43,12 @@ gdk_win32_public_headers = files([
install_headers(gdk_win32_public_headers, 'gdkwin32.h', subdir: 'gtk-4.0/gdk/win32/')
+GDK_WIN32_EGL_CFLAGS = []
+
+if win32_has_egl
+ GDK_WIN32_EGL_CFLAGS = ['-DGDK_WIN32_ENABLE_EGL']
+endif
+
gdk_win32_deps = [ # FIXME
pangowin32_dep
]
@@ -50,5 +56,5 @@ gdk_win32_deps = [ # FIXME
libgdk_win32 = static_library('gdk-win32',
gdk_win32_sources, gdkconfig, gdkenum_h,
include_directories: [confinc, gdkinc],
- c_args: ['-DGTK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-DINSIDE_GDK_WIN32'],
+ c_args: ['-DGTK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-DINSIDE_GDK_WIN32'] + GDK_WIN32_EGL_CFLAGS,
dependencies: [gdk_deps, gdk_win32_deps])