rename vopt_onoff to vopt_bool which returns -D<prop>=true|false
This makes it more generic and allows us to use it freely between cmake and meson build styles.
This commit is contained in:
parent
9a60b4f245
commit
daf68c6d59
2 changed files with 7 additions and 7 deletions
|
@ -830,10 +830,10 @@ package accordingly. Additionally, the following functions are available:
|
|||
|
||||
Emits an error and exits if both options are set at the same time.
|
||||
|
||||
- *vopt_onoff()* `vopt_onoff <option> <property>`
|
||||
- *vopt_bool()* `vopt_bool <option> <property>`
|
||||
|
||||
Outputs `-D<property>=ON` if the option is set, or
|
||||
`-D<property>=OFF` otherwise.
|
||||
Outputs `-D<property>=true` if the option is set, or
|
||||
`-D<property>=false` otherwise.
|
||||
|
||||
The following example shows how to change a source package that uses GNU
|
||||
configure to enable a new build option to support PNG images:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue