build - meson - fix ecore-x to detect xcursor to fix rgba cursors
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 18 Oct 2018 12:42:10 +0000 (13:42 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Thu, 8 Nov 2018 06:40:45 +0000 (15:40 +0900)
src/lib/ecore_x/meson.build

index 9c1f00d..0e16bd7 100644 (file)
@@ -122,6 +122,15 @@ cc.has_header_symbol('X11/XKBlib.h', 'XkbSetDetectableAutoRepeat',
 )
 config_h.set('ECORE_XKB', '1')
 
+lib = cc.find_library('Xcursor',
+  required: true
+)
+cc.has_header_symbol('X11/Xcursor/Xcursor.h', 'XcursorSupportsARGB',
+  dependencies : [x11, xcb]
+  )
+config_h.set('ECORE_XCURSOR', '1')
+ecore_x_deps += lib
+
 ecore_x_lib = library('ecore_x',
     ecore_x_src, pub_eo_file_target,
     dependencies: ecore_x_pub_deps + ecore_x_deps,