summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/meson.build4
1 files changed, 3 insertions, 1 deletions
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.