Commit Graph

6 Commits

Author SHA1 Message Date
maxice8 daf68c6d59 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.
2018-05-04 10:56:26 +02:00
Michael Carlberg d5c58a3c60 xbps-src: new vopt_onoff helper
CMake helper function used to set bool argument values

Usage example:

    configure_args+=" $(vopt_onoff logging WITH_LOGGING)"

    configure_args+=" -DWITH_LOGGING=OFF"
2018-05-03 01:26:32 -04:00
jbu 17107adbca vopt_enable: check for excess parameters 2015-06-20 10:08:44 +02:00
Dominik Honnef 191c1eaf51 add vopt_conflict helper
vopt_conflict prints an error and exits if two options are set at the
same time.
2014-09-05 16:57:47 +02:00
Dominik Honnef 62b3c65d77 tidy up vopt helpers 2014-09-05 16:42:34 +02:00
Juan RP 6d20b9a05a xbps-src: move vopt_* helpers to environment/setup/options.sh. 2014-08-30 09:10:11 +02:00