From 3213efee5f9d9375bd395b80fae54958b2f576a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sat, 29 Jun 2024 17:35:41 +0200 Subject: [PATCH] meson: Do not list Clapper API features when not building it No need to list API features if API is not being built. This avoids an issue with meson script error when Clapper API build is skipped, since these are not declared then. Fixes #468 --- meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index e15cfa01..d80dc61e 100644 --- a/meson.build +++ b/meson.build @@ -146,6 +146,8 @@ summary('introspection', build_gir ? 'Yes' : 'No', section: 'Build') summary('vapi', build_vapi ? 'Yes' : 'No', section: 'Build') summary('doc', build_doc ? 'Yes' : 'No', section: 'Build') -foreach name : clapper_possible_features - summary(name, clapper_available_features.contains(name) ? 'Yes' : 'No', section: 'Features') -endforeach +if build_clapper + foreach name : clapper_possible_features + summary(name, clapper_available_features.contains(name) ? 'Yes' : 'No', section: 'Features') + endforeach +endif