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