mesa/src/panfrost/meson.build
Faith Ekstrand 4c9ec8fad2 pan: Add a central libpanfrost_compiler library
The only thing that only pulls in bifrost is our CL compiler for
pre-builts.  Everything that uses pan_shader.h pulls it in because
that's header-only and calls into both back-ends anyway.  Some day
we might want to figure out how to properly dead-code the midgard
compiler for Vulkan but today is not that day.

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38753>
2025-12-02 21:00:30 +00:00

66 lines
1.2 KiB
Meson

# Copyright © 2018 Rob Clark
# Copyright © 2019 Collabora
# SPDX-License-Identifier: MIT
inc_panfrost = include_directories([
'.', 'shared', 'compiler', 'lib', 'libpan', 'model',
])
compile_args_panfrost = [
'-Wno-pointer-arith'
]
subdir('shared')
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/bifrost/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_compiler,
],
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