meson: don't build gallium subdir unless we're building gallium

This will allow us to simplify some guards within the gallium directory.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Dylan Baker 2017-11-14 17:03:39 -08:00
parent 494effd242
commit 689fb74716
1 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,9 @@ endif
if with_egl
subdir('egl')
endif
subdir('gallium')
if with_gallium
subdir('gallium')
endif
# This must be after at least mesa, glx, and gallium, since libgl will be
# defined in one of those subdirs depending on the glx provider.