Lines Matching +full:build +full:- +full:disabled

4 # user build options introspection data
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",
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.
90 return "enabled" if value else "disabled"
126 # than "auto", "enabled", and "disabled".
132 return not (set(opt["choices"]) <= {"auto", "disabled", "enabled"})
138 # nor "disabled"
144 return not ({"enabled", "disabled"}.intersection(opt["choices"]))
165 return name.replace("_", "-")
173 return f"disable-{key}"
174 return f"enable-{key}"
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 ;;')
236 if opt["type"] == "combo" and "disabled" in opt["choices"]:
237 print(f' --disable-{key}) printf "%s" -D{name}=disabled ;;')
239 print(f' --enable-{key}=*) quote_sh "-D{name}=$2" ;;')
248 print("Failure in scripts/meson-buildoptions.py parsing stdin as json",
252 print("# This file is generated by meson-buildoptions.py, do not edit!")