Lines Matching +full:- +full:- +full:enable +full:- +full:werror
28 # Options with nonstandard names (e.g. --with/--without) or OS-dependent
40 "coroutine_backend": "with-coroutine",
41 "debug": "debug-info",
42 "malloc": "enable-malloc",
43 "pkgversion": "with-pkgversion",
45 "qemu_suffix": "with-suffix",
46 "trace_backends": "enable-trace-backends",
47 "trace_file": "with-trace-file",
53 "werror",
58 # via -D, because it's a mix of CFLAGS and --extra-cflags); for specific
59 # cases "../configure -D" can be used as an escape hatch.
75 "werror",
165 return name.replace("_", "-")
173 return f"disable-{key}"
174 return f"enable-{key}"
191 # and booleans (i.e., only one of enable/disable makes sense)
194 left = f"--{key}={metavar}"
197 left = f"--{key}"
201 left = f"--{key}[=CHOICE]"
203 left = f"--{key}=CHOICE"
209 sh_print("Optional features, enabled with --enable-FEATURE and")
210 sh_print("disabled with --disable-FEATURE, default is enabled if available")
211 sh_print("(unless built with --without-default-features):")
227 print(f' --{key}=*) quote_sh "-D{name}=$(meson_option_build_array $2)" ;;')
229 print(f' --{key}=*) quote_sh "-D{name}=$2" ;;')
231 print(f' --enable-{key}) printf "%s" -D{name}=true ;;')
232 print(f' --disable-{key}) printf "%s" -D{name}=false ;;')
235 print(f' --enable-{key}) printf "%s" -D{name}=enabled ;;')
237 print(f' --disable-{key}) printf "%s" -D{name}=disabled ;;')
239 print(f' --enable-{key}=*) quote_sh "-D{name}=$2" ;;')
246 print("# This file is generated by meson-buildoptions.py, do not edit!")