Right now the drm-shim is build only when one also builds radeonsi
or radv.
Acked-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19692>
inc_amd = include_directories('.')
-subdir('addrlib')
-subdir('common')
-if with_llvm
- subdir('llvm')
-else
- libamd_common_llvm = []
+if with_amd_vk or with_gallium_radeonsi
+ subdir('addrlib')
+ subdir('common')
+ if with_llvm
+ subdir('llvm')
+ else
+ libamd_common_llvm = []
+ endif
endif
if with_amd_vk
subdir('compiler')
if with_any_intel
subdir('intel')
endif
-if with_gallium_radeonsi or with_amd_vk
+if with_gallium_radeonsi or with_amd_vk or with_gallium_r300 or with_gallium_r600
subdir('amd')
endif
if with_any_broadcom