mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
meson: Allow controlling perfetto fallback
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36561>
This commit is contained in:
parent
d476a8c07b
commit
eb6f6c1976
2 changed files with 7 additions and 3 deletions
|
|
@ -2164,11 +2164,15 @@ else
|
|||
pre_args += '-DCUSTOM_SHADER_REPLACEMENT'
|
||||
endif
|
||||
|
||||
allow_fallback_for_perfetto = get_option('allow-fallback-for').contains('perfetto')
|
||||
with_perfetto = get_option('perfetto')
|
||||
with_datasources = get_option('datasources')
|
||||
with_any_datasource = with_datasources.length() != 0
|
||||
if with_perfetto
|
||||
dep_perfetto = dependency('perfetto', fallback: ['perfetto', 'dep_perfetto'])
|
||||
dep_perfetto = dependency(
|
||||
'perfetto',
|
||||
fallback: allow_fallback_for_perfetto ? ['perfetto', 'dep_perfetto'] : [],
|
||||
)
|
||||
pre_args += '-DHAVE_PERFETTO'
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -832,9 +832,9 @@ option(
|
|||
option(
|
||||
'allow-fallback-for',
|
||||
type : 'array',
|
||||
value : [],
|
||||
value : ['perfetto'],
|
||||
choices : [
|
||||
'libdrm',
|
||||
'libdrm', 'perfetto',
|
||||
],
|
||||
description : 'Allows the fallback mechanism if the dependency is not available on the system, or too old.'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue