meson: fix deps and underlinkage of libGL
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 23 Nov 2017 13:51:43 +0000 (13:51 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 30 Nov 2017 15:09:21 +0000 (15:09 +0000)
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
meson.build
src/glx/meson.build

index 9222e6ec2301cdea4f9c233fc69f4ea1d77cddcf..aa923cd472b4c23e8c40720128a9aee628e700c2 100644 (file)
@@ -888,7 +888,7 @@ if with_platform_x11
     dep_x11 = dependency('x11')
     dep_xext = dependency('xext')
     dep_xcb = dependency('xcb')
-  elif with_glx == 'dri' and with_dri_platform == 'drm'
+  elif with_glx == 'dri'
     dep_x11 = dependency('x11')
     dep_xext = dependency('xext')
     dep_xdamage = dependency('xdamage', version : '>= 1.1')
@@ -896,9 +896,11 @@ if with_platform_x11
     dep_xcb_glx = dependency('xcb-glx', version : '>= 1.8.1')
     dep_xxf86vm = dependency('xxf86vm', required : false)
   endif
-  if with_any_vk or (with_glx == 'dri' and with_dri_platform == 'drm')
+  if with_any_vk or with_glx == 'dri'
     dep_xcb = dependency('xcb')
     dep_x11_xcb = dependency('x11-xcb')
+  endif
+  if with_any_vk or (with_glx == 'dri' and with_dri_platform == 'drm')
     dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8')
 
     if with_dri3
index a7eb48a0069615b1a4b3dda1a608bb03ca0f6764..2ffef4cf22367e06c5ba142b14cec391bf701499 100644 (file)
@@ -168,6 +168,7 @@ if with_glx == 'dri'
     link_whole : libglx,
     link_args : [ld_args_bsymbolic, ld_args_gc_sections, extra_ld_args_libgl],
     dependencies : [dep_libdrm, dep_dl, dep_m, dep_thread, dep_x11,
+                    dep_xcb_glx, dep_xcb, dep_x11_xcb,
                     dep_xcb_dri2, dep_xcb_dri3, extra_deps_libgl],
     version : gl_lib_version,
     install : true,