meson: Fix glx build with DRI2 disabled.

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 ''.

Daniel Stone <daniels@collabora.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Eric Anholt 2017-04-28 15:09:38 -07:00 committed by Adam Jackson
parent 62f727c7ea
commit ea275cd3d5

View File

@ -49,7 +49,7 @@ if build_glx
)
endif
srcs_glxdri2 = ''
srcs_glxdri2 = []
if build_dri2 or build_dri3
srcs_glxdri2 = files('glxdri2.c')
endif