meson: Fix missing glproto dependency for gallium-glx
authorChuck Atkins <chuck.atkins@kitware.com>
Fri, 3 May 2019 16:06:22 +0000 (12:06 -0400)
committerChuck Atkins <chuck.atkins@kitware.com>
Fri, 3 May 2019 17:36:25 +0000 (13:36 -0400)
Signed-off-by: Chuck Atkins <chuck.atkins@kitware.com>
Cc: mesa-stable <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build
src/gallium/state_trackers/glx/xlib/meson.build

index 2df33f261009494f69cbc76f035958d9ae014619..a637f3b1442fddfb9919dbabc0da4750d42cfac2 100644 (file)
@@ -1400,12 +1400,14 @@ if with_platform_x11
       dep_xshmfence = dependency('xshmfence', version : '>= 1.1')
     endif
   endif
-  if with_glx == 'dri'
+  if with_glx == 'dri' or with_glx == 'gallium-xlib'
+    dep_glproto = dependency('glproto', version : '>= 1.4.14')
+  endif
+  if with_glx == 'dri' 
     if with_dri_platform == 'drm'
       dep_dri2proto = dependency('dri2proto', version : '>= 2.8')
       dep_xxf86vm = dependency('xxf86vm')
     endif
-    dep_glproto = dependency('glproto', version : '>= 1.4.14')
   endif
   if (with_egl or (
       with_gallium_vdpau or with_gallium_xvmc or with_gallium_xa or
index f4ee75426bc8963442b9bdfd4dc6358616820b38..34b93c94cf26ed046a80d6b8b6a4324d44cf4798 100644 (file)
@@ -23,5 +23,5 @@ libxlib = static_library(
   files('glx_api.c', 'glx_getproc.c', 'glx_usefont.c', 'xm_api.c', 'xm_st.c'),
   c_args : c_vis_args,
   include_directories : [inc_common, inc_mapi, inc_mesa],
-  dependencies : [dep_x11, dep_xext, dep_xcb],
+  dependencies : [dep_x11, dep_xext, dep_xcb, dep_glproto],
 )