mesonEnable
lib.strings.mesonEnable
Docs pulled from | This Revision | 17 minutes ago
Create a -D={enabled,disabled} string that can be passed to typical Meson invocations.
Inputs
feature
- The feature to be enabled or disabled
flag
- The controlling flag
Type
mesonEnable :: string -> bool -> string
Examples
lib.strings.mesonEnable
usage example
mesonEnable "docs" true
=> "-Ddocs=enabled"
mesonEnable "savage" false
=> "-Dsavage=disabled"