meson: only build mapi when needed
authorEric Engestrom <eric@igalia.com>
Sat, 5 Nov 2022 08:47:04 +0000 (08:47 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Feb 2023 02:53:54 +0000 (02:53 +0000)
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19600>

src/meson.build

index 14f916f..b163093 100644 (file)
@@ -67,7 +67,9 @@ endif
 subdir('android_stub')
 subdir('c11/impl')
 subdir('util')
-subdir('mapi')
+if with_gallium
+  subdir('mapi')
+endif
 # TODO: opengl
 subdir('compiler')
 if with_tools.contains('drm-shim')