RFC Automatically convert configure options to meson build options
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest8 patches 23 repliesIn review
- v1 RFC3 patches 12 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | build-system: clean up TCG/TCI configuryconfigure disas/ meson.build +1 more | +31 | 14 replies | |
| 2/8 | cocoa: do not enable coreaudio automaticallyconfigure | +1 | 0 replies | |
| 3/8 | gtk: remove CONFIG_GTK_GLconfigure meson.build ui/ +1 more | +9 | 1 reply | |
| 4/8 | configure: move X11 detection to Mesonconfigure meson.build ui/ | +9 | 0 replies | |
| 5/8 | configure: move GTK+ detection to Mesonconfigure meson.build meson_options.txt +1 more | +30 | 0 replies | |
| 6/8 | configure: move Cocoa incompatibility checks to Mesonconfigure meson.build | +10 | 0 replies | |
| 7/8 | configure: quote command line arguments in config.statusconfigure | +5 | 1 reply | |
| 8/8 | configure: automatically parse command line for meson -D optionsMakefile configure docs/ +3 more | +993 | 7 replies |
Reviews trailers per patch
2 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Gerd Hoffmann | Eric Blake |
|---|---|---|
| 1/8 | ||
| 2/8 | ||
| 3/8 | A-b | |
| 4/8 | ||
| 5/8 | ||
| 6/8 | ||
| 7/8 | R-b | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH v2 0/8] Automatically convert configure options to meson build options
This is v2 of a concept that was first posted last September. In the meanwhile more options have been added to Meson, so the effect of the change can hopefully be evaluated more accurately. At least, the amount of lines removed in the configure script is larger than the size of the script itself!
Regarding the code itself, the main change is that the script has been rewritten from Python to Perl. The reasons for this are detailed in the commit message.
For the parsing of an option to be completely automatic, there must be no mentions of the corresponding variable in configure. Patches 1 to 6 clean up some of the stragglers to enable more automatic conversions. The only remaining options to be split between configure and Meson are capstone, git, slirp, default_devices, cfi and xen.
Paolo
Paolo Bonzini (8):
build-system: clean up TCG/TCI configury
cocoa: do not enable coreaudio automatically
gtk: remove CONFIG_GTK_GL
configure: move X11 detection to Meson
configure: move GTK+ detection to Meson
configure: move Cocoa incompatibility checks to Meson
configure: quote command line arguments in config.status
configure: automatically parse command line for meson -D options
Makefile | 11 + configure | 459 ++------------- disas/meson.build | 2 - docs/devel/build-system.rst | 49 +- meson-buildoptions.json | 717 ++++++++++++++++++++++++ meson.build | 100 ++-- meson_options.txt | 13 +- scripts/configure-parse-buildoptions.pl | 205 +++++++ ui/gtk.c | 16 +- ui/meson.build | 9 +- 10 files changed, 1073 insertions(+), 508 deletions(-) create mode 100644 meson-buildoptions.json create mode 100755 scripts/configure-parse-buildoptions.pl
Signature · 1 line
2.29.2