forked from AuroraMiddleware/gtk
build: Add a HAVE_EGL define to config.h
This commit is contained in:
parent
04da2ff7c8
commit
ae8de7168a
@ -48,7 +48,7 @@ install_headers(gdk_win32_public_headers, 'gdkwin32.h', subdir: 'gtk-4.0/gdk/win
|
|||||||
|
|
||||||
GDK_WIN32_EGL_CFLAGS = []
|
GDK_WIN32_EGL_CFLAGS = []
|
||||||
|
|
||||||
if win32_has_egl
|
if have_egl
|
||||||
GDK_WIN32_EGL_CFLAGS = ['-DGDK_WIN32_ENABLE_EGL']
|
GDK_WIN32_EGL_CFLAGS = ['-DGDK_WIN32_ENABLE_EGL']
|
||||||
gdk_win32_sources += ['gdkglcontext-win32-egl.c']
|
gdk_win32_sources += ['gdkglcontext-win32-egl.c']
|
||||||
endif
|
endif
|
||||||
|
12
meson.build
12
meson.build
@ -481,7 +481,15 @@ if not cairo_csi_dep.found()
|
|||||||
cairo_csi_dep = cc.find_library('cairo-script-interpreter', required: get_option('build-tests'))
|
cairo_csi_dep = cc.find_library('cairo-script-interpreter', required: get_option('build-tests'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
have_egl = epoxy_dep.get_variable(
|
||||||
|
pkgconfig: 'epoxy_has_egl',
|
||||||
|
internal: 'epoxy_has_egl',
|
||||||
|
default_value: '0') == '1'
|
||||||
|
|
||||||
cdata.set('HAVE_CAIRO_SCRIPT_INTERPRETER', cairo_csi_dep.found())
|
cdata.set('HAVE_CAIRO_SCRIPT_INTERPRETER', cairo_csi_dep.found())
|
||||||
|
if have_egl
|
||||||
|
cdata.set('HAVE_EGL', 1)
|
||||||
|
endif
|
||||||
cdata.set('HAVE_HARFBUZZ', harfbuzz_dep.found())
|
cdata.set('HAVE_HARFBUZZ', harfbuzz_dep.found())
|
||||||
cdata.set('HAVE_PANGOFT', pangoft_dep.found())
|
cdata.set('HAVE_PANGOFT', pangoft_dep.found())
|
||||||
|
|
||||||
@ -589,10 +597,6 @@ if win32_enabled
|
|||||||
pc_gdk_extra_libs += ['-lwinmm', '-ldwmapi', '-lsetupapi', '-lcfgmgr32']
|
pc_gdk_extra_libs += ['-lwinmm', '-ldwmapi', '-lsetupapi', '-lcfgmgr32']
|
||||||
|
|
||||||
# Check whether libepoxy is built with EGL support on Windows
|
# Check whether libepoxy is built with EGL support on Windows
|
||||||
win32_has_egl = epoxy_dep.get_variable(
|
|
||||||
pkgconfig: 'epoxy_has_egl',
|
|
||||||
internal: 'epoxy_has_egl',
|
|
||||||
default_value: '0') == '1'
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Check for bind_textdomain_codeset, including -lintl if GLib brings it in by
|
# Check for bind_textdomain_codeset, including -lintl if GLib brings it in by
|
||||||
|
Loading…
Reference in New Issue
Block a user