freedreno: Only add drm/computerator when system_has_kms_drm
authorMark Collins <mark@igalia.com>
Mon, 7 Aug 2023 14:22:45 +0000 (14:22 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Sep 2023 22:20:13 +0000 (22:20 +0000)
These are both MSM-DRM specific subprojects which depend on it and
cannot be built without, this change is required to allow for KGSL
freedreno tool builds to compile successfully.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

src/freedreno/meson.build

index 10c8082..77621cf 100644 (file)
@@ -43,12 +43,15 @@ install_fd_decode_tools = dep_libxml2.found() and prog_gzip.found() and \
 subdir('registers')
 subdir('common')
 subdir('isa')
-subdir('drm')
 subdir('ir2')
 subdir('ir3')
 subdir('fdl')
 subdir('perfcntrs')
-subdir('computerator')
+
+if system_has_kms_drm
+  subdir('drm')
+  subdir('computerator')
+endif
 
 if with_perfetto and (with_datasources.contains('freedreno') or with_datasources.contains('auto'))
   subdir('ds')