[PATCH xserver 2/2] meson: Fix glx build with DRI2 disabled.

Eric Anholt eric at anholt.net
Fri Apr 28 22:09:38 UTC 2017


A common meson pattern is to use empty arrays for optional sources and
dependencies, since it generally iterates over trees of arrays looking
for values.  A value of '' will actually go looking for ''.

Signed-off-by: Eric Anholt <eric at anholt.net>
---
 glx/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glx/meson.build b/glx/meson.build
index c5f5ecc8f430..a4af2b84688e 100644
--- a/glx/meson.build
+++ b/glx/meson.build
@@ -49,7 +49,7 @@ if build_glx
     )
 endif
 
-srcs_glxdri2 = ''
+srcs_glxdri2 = []
 if build_dri2 or build_dri3
     srcs_glxdri2 = files('glxdri2.c')
 endif
-- 
2.11.0



More information about the xorg-devel mailing list