TODO: glx: meson: build dri based glx tests, only with -Dglx=dri
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 12 Dec 2018 17:47:36 +0000 (17:47 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Dec 2018 17:47:36 +0000 (17:47 +0000)
commit9527f9ea2611b0793377016c8c16ec58ded7f287
tree7b50273f347672a5a9902ecf4c1a16932cc2707b
parent2eedb79e1a2e92648bd245f9db88ecb7b587b7fd
TODO: glx: meson: build dri based glx tests, only with -Dglx=dri

The library itself (libGL) is only built when -Dglx=dri, yet it's
accompanying tests are build even with -Dglx=xlib.

Adjust the guards, so we don't build the tests when they are not
applicable

v2:
 - Reword commit message (Dylan)
 - Drop build_by_default hunk (Dylan)

Fixes: a47c525f328 ("meson: build glx")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/glx/meson.build
src/meson.build