About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index aa485a262f5..4351e1c711e 100644
--- a/meson.build
+++ b/meson.build
@@ -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