meson: fix a potentionally unexpected behavior

lidrm is defined in different locations, which causes a unexpected behavior.
this patch fixes it in advance.
Differential Revision: https://phab.enlightenment.org/D7567
This commit is contained in:
Wonki Kim 2019-01-10 07:55:56 +00:00 committed by Marcel Hollerbach
parent ee39639294
commit 2ce9744754
1 changed files with 2 additions and 5 deletions

View File

@ -4,16 +4,13 @@ subdir('shm')
#common dri packages
libtbm = dependency('libtbm', required: false)
libdrm = dependency('libdrm', required: false)
if libtbm.found() == true and libdrm.found() == true
if libtbm.found() == true
libdri2 = dependency('libdri2', required: false)
if libdri2.found()
subdir('x11_dri2')
endif
endif
if libtbm.found() == true and libdrm.found() == true
xshmfence = dependency('xshmfence', required: false)
xcb = dependency('xcb', required: false)
x11_xcb = dependency('x11_xcb', required: false)