[PATCH v2] meson: Declare GLIB_VERSION_* macros at configure

Pavel Hrdina phrdina at redhat.com
Mon May 3 09:37:31 UTC 2021


On Mon, May 03, 2021 at 10:35:07AM +0200, Michal Privoznik wrote:
> So far we have three places where glib version is recorded:
> meson.build and then in config.h. The latter is so well hidden
> that it's easy to miss when bumping minimal glib version in the
> former. With a bit of python^Wmeson string magic
> GLIB_VERSION_MIN_REQUIRED and GLIB_VERSION_MAX_ALLOWED macros can
> be defined to match glib_version from meson.build.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> 
> v2 of:
> 
> https://listman.redhat.com/archives/libvir-list/2021-April/msg01300.html
> 
> diff to v1:
> - Introduced new glib_version_str variable per Pavel's suggestion
> 
>  config.h    | 10 ----------
>  meson.build |  8 ++++++++
>  2 files changed, 8 insertions(+), 10 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210503/3887ab92/attachment-0001.sig>


More information about the libvir-list mailing list