meson: split subdir for virtio/vdrm and virtio/vulkan

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35723>
This commit is contained in:
Eric Engestrom 2025-06-25 16:57:18 +02:00 committed by Marge Bot
parent 6f8c4a7ce1
commit 1a6fc7006a
4 changed files with 9 additions and 11 deletions

View file

@ -288,6 +288,8 @@ if freedreno_kmds.length() != 0 and freedreno_kmds != [ 'msm' ] and with_freedre
endif
with_vdrm = [
with_gallium_virgl,
with_virtio_vk,
with_amdgpu_virtio,
freedreno_kmds.contains('virtio'),
with_gallium_asahi,

View file

@ -70,8 +70,11 @@ endif
if with_any_intel
subdir('intel')
endif
if with_vdrm or with_gallium_virgl or with_virtio_vk
subdir('virtio')
if with_virtio_vk
subdir('virtio/vulkan')
endif
if with_vdrm
subdir('virtio/vdrm')
endif
if with_gallium_radeonsi or with_amd_vk or with_gallium_r300 or with_gallium_r600
subdir('amd')

View file

@ -1,9 +0,0 @@
# Copyright © 2017 Intel Corporation
# SPDX-License-Identifier: MIT
inc_virtio_vdrm = include_directories('./vdrm')
if with_virtio_vk
subdir('vulkan')
endif
subdir('vdrm')

View file

@ -1,6 +1,8 @@
# Copyright 2023 Google LLC
# SPDX-License-Identifier: MIT
inc_virtio_vdrm = include_directories('.')
libvdrm = static_library(
'libvdrm',
[