summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-05-24 11:39:41 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2018-05-24 11:39:41 +0100
commitc1dbf80d759325c56481885638ac6cb746b6a4af (patch)
tree646468300da794025d6ecb2839a802e5b26cec1c
parent11a1961b57d203a1f9328e96db9c7e0099c0fd77 (diff)
downloadgdk-pixbuf-issue-77.tar.gz
Make the X11 dependency less automagicissue-77
If the x11 option is enabled then we require X11. We should use a `dependency()` object in order to check for Xlib, instead of checking for libX11 being available. Closes #77
-rw-r--r--meson.build6
1 files changed, 2 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 626e8978c..c510668e1 100644
--- a/meson.build
+++ b/meson.build
@@ -381,10 +381,8 @@ subdir('gdk-pixbuf')
gdkpixbuf_xlib_inc = []
if get_option('x11')
- x11_dep = cc.find_library('X11', required: false)
- if x11_dep.found()
- subdir('contrib/gdk-pixbuf-xlib')
- endif
+ x11_dep = dependency('x11')
+ subdir('contrib/gdk-pixbuf-xlib')
endif
# i18n