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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user