asahi: build asahi_clc for -Dtools=asahi

This allows building tools for cross-compiling without building gallium
or vulkan drivers unnecessarily.

Backport-to: 25.1
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: Janne Grunau <j@jannau.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34693>
(cherry picked from commit 007d7418f8fb41c1ea789f5049be023312802048)
This commit is contained in:
Janne Grunau
2025-04-12 13:26:52 +02:00
committed by Eric Engestrom
parent a17da10518
commit afe870756d
2 changed files with 6 additions and 3 deletions

View File

@@ -254,7 +254,7 @@
"description": "asahi: build asahi_clc for -Dtools=asahi",
"nominated": true,
"nomination_type": 4,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View File

@@ -9,12 +9,15 @@ inc_asahi = include_directories([
'.', 'layout', 'lib', 'genxml', 'compiler'
])
if with_gallium_asahi or with_asahi_vk
if with_gallium_asahi or with_asahi_vk or with_tools.contains('asahi')
subdir('genxml')
subdir('libagx')
subdir('layout')
subdir('compiler')
subdir('clc')
endif
if with_gallium_asahi or with_asahi_vk
subdir('layout')
subdir('lib')
elif dep_iokit.found()
# Just build enough for libwrap.dylib