query
On this page

mesonEnable

lib.mesonEnable

Docs pulled from | This Revision | 31 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"
(lib.strings.mesonEnable)

Noogle also knows

Aliases