From: Dylan Baker Date: Wed, 15 Nov 2017 01:03:39 +0000 (-0800) Subject: meson: don't build gallium subdir unless we're building gallium X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=689fb7471671991b3971eeb4f0fa8aa3721c4822;p=mesa.git 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 Reviewed-by: Eric Anholt --- diff --git a/src/meson.build b/src/meson.build index 9232cc4ab18..00bbaa8989c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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.