Skip to content

Commit

Permalink
meson: Do not list Clapper API features when not building it
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Rafostar committed Jun 29, 2024
1 parent 63f2fa1 commit 736fddb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 736fddb

Please sign in to comment.