panfrost: Only build libpanfrost with GL/VK
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 21 Jul 2021 19:14:17 +0000 (15:14 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 22 Jul 2021 17:55:49 +0000 (17:55 +0000)
It's not needed for the standalone compiler. These depend on xf86drm.h which is
not available on other platforms where we might want to build the standalone
compiler.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12003>

src/panfrost/meson.build

index cc919ca..7ce865c 100644 (file)
@@ -31,8 +31,11 @@ subdir('shared')
 subdir('util')
 subdir('midgard')
 subdir('bifrost')
-subdir('lib')
-subdir('perf')
+
+if with_gallium_panfrost or with_panfrost_vk
+   subdir('lib')
+   subdir('perf')
+endif
 
 files_bifrost = files(
   'bifrost/cmdline.c',