summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-15 01:22:14 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-10-15 01:22:14 +0000
commitc5d39c3582e504870caeb46399075235793ae1f7 (patch)
tree7a59d1650f09171f365b3b4e6c6cb496cf40ae80
parenta51e5551ba18fd80a640731dcceefa029e2eec08 (diff)
parentaeba99079371d2ef637e4d2b7b86b9aa8bebe220 (diff)
downloadgtk+-c5d39c3582e504870caeb46399075235793ae1f7.tar.gz
Merge branch 'meson-epoxy-subproject' into 'gtk-3-24'
meson: Fix error when epoxy is a subproject on Windows See merge request GNOME/gtk!2691
-rw-r--r--meson.build18
1 files changed, 5 insertions, 13 deletions
diff --git a/meson.build b/meson.build
index 6afd5e4efb..4a43260c62 100644
--- a/meson.build
+++ b/meson.build
@@ -667,19 +667,11 @@ if win32_enabled
endif
pc_gdk_extra_libs += ['-lwinmm', '-ldwmapi', '-lsetupapi', '-lcfgmgr32']
-# Check whether libepoxy is built with EGL support on Windows
- win32_has_egl = cc.links(
- '''
- #include <epoxy/egl.h>
-
- int main(int argc, char *argv[]) {
- return epoxy_egl_version (EGL_NO_DISPLAY);
- }
- ''',
- dependencies : epoxy_dep,
- name : 'libepoxy supports EGL 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
# IMModules stuff-unfortunately we need to put items here