mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-25 19:08:12 +02:00
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>
68 lines
1.2 KiB
Meson
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
|