From 689fb7471671991b3971eeb4f0fa8aa3721c4822 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 14 Nov 2017 17:03:39 -0800 Subject: [PATCH] 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 --- src/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.30.2