mesa/src/panfrost/meson.build
Christoph Pillmayer f091bdf392 pan: Lift pan_get_model into its own lib
The following commit needs to use it from panfrost/compiler. But compiler
depends itself on panfrost/lib.

Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37231>
2025-09-16 15:54:48 +00:00

68 lines
1.2 KiB
Meson

# Copyright © 2018 Rob Clark
# Copyright © 2019 Collabora
# SPDX-License-Identifier: MIT
inc_panfrost = include_directories([
'.', 'shared', 'midgard', 'compiler', 'lib', 'libpan', 'model',
])
compile_args_panfrost = [
'-Wno-pointer-arith'
]
subdir('shared')
subdir('util')
subdir('midgard')
subdir('model')
subdir('compiler')
if with_gallium_panfrost or with_panfrost_vk or with_tools.contains('panfrost')
subdir('genxml')
subdir('lib')
subdir('clc')
endif
if with_gallium_panfrost or with_panfrost_vk
subdir('libpan')
subdir('perf')
endif
files_bifrost = files(
'compiler/cmdline.c',
)
bifrost_compiler = executable(
'bifrost_compiler',
[files_bifrost],
include_directories : [
inc_include,
inc_src,
inc_panfrost,
],
dependencies : [
idep_nir,
idep_mesautil,
idep_bi_opcodes_h,
dep_libdrm,
],
link_with : [
libpanfrost_bifrost,
],
build_by_default : with_tools.contains('panfrost')
)
if with_panfrost_vk
subdir('vulkan')
endif
if with_perfetto and (with_datasources.contains('panfrost') or with_datasources.contains('auto'))
subdir('ds')
endif
if with_tools.contains('drm-shim')
subdir('drm-shim')
endif
if with_tools.contains('panfrost')
subdir('tools')
endif