Skip to content

RFC Automatically convert configure options to meson build options

Paolo Bonzini qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest8 patches 23 repliesIn review
  2. v1 RFC3 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8build-system: clean up TCG/TCI configuryconfigure disas/meson.build meson.build +1 more+31 -3414 replies
2/8cocoa: do not enable coreaudio automaticallyconfigure+1 -30 replies
3/8gtk: remove CONFIG_GTK_GLconfigure meson.build ui/gtk.c +1 more+9 -181 reply
4/8configure: move X11 detection to Mesonconfigure meson.build ui/meson.build+9 -180 replies
5/8configure: move GTK+ detection to Mesonconfigure meson.build meson_options.txt +1 more+30 -580 replies
6/8configure: move Cocoa incompatibility checks to Mesonconfigure meson.build+10 -220 replies
7/8configure: quote command line arguments in config.statusconfigure+5 -11 reply
8/8configure: automatically parse command line for meson -D optionsMakefile configure docs/devel/build-system.rst +3 more+993 -3697 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchGerd HoffmannEric Blake
1/8
2/8
3/8A-b
4/8
5/8
6/8
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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