[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 49/68] meson: add more version numbers to the summary
|
From: |
Paolo Bonzini |
|
Subject: |
[PULL 49/68] meson: add more version numbers to the summary |
|
Date: |
Wed, 17 May 2023 19:45:01 +0200 |
Whenever declare_dependency is used to add some compile flags or dependent
libraries to the outcome of dependency(), the version of the original
dependency is dropped in the summary. Make sure that declare_dependency()
has a version argument in those cases.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/meson.build b/meson.build
index 132f309bdab2..464890d99ac0 100644
--- a/meson.build
+++ b/meson.build
@@ -888,7 +888,8 @@ if have_system and get_option('curses').allowed()
curses_compile_args = ['-DNCURSES_WIDECHAR=1']
if curses.found()
if cc.links(curses_test, args: curses_compile_args, dependencies: [curses])
- curses = declare_dependency(compile_args: curses_compile_args,
dependencies: [curses])
+ curses = declare_dependency(compile_args: curses_compile_args,
dependencies: [curses],
+ version: curses.version())
else
msg = 'curses package not usable'
curses = not_found
@@ -977,7 +978,8 @@ endif
if sdl.found()
# work around 2.0.8 bug
sdl = declare_dependency(compile_args: '-Wno-undef',
- dependencies: sdl)
+ dependencies: sdl,
+ version: sdl.version())
sdl_image = dependency('SDL2_image', required: get_option('sdl_image'),
method: 'pkg-config')
else
@@ -1198,9 +1200,10 @@ if not gnutls_crypto.found()
# as it "spreads unnecessary dependencies" which in
# turn breaks static builds...
if gcrypt.found() and get_option('prefer_static')
- gcrypt = declare_dependency(dependencies: [
- gcrypt,
- cc.find_library('gpg-error', required: true)])
+ gcrypt = declare_dependency(dependencies:
+ [gcrypt,
+ cc.find_library('gpg-error', required: true)],
+ version: gcrypt.version())
endif
endif
if (not get_option('nettle').auto() or have_system) and not gcrypt.found()
@@ -1234,7 +1237,8 @@ if not get_option('gtk').auto() or have_system
gtkx11 = dependency('gtk+-x11-3.0', version: '>=3.22.0',
method: 'pkg-config',
required: false)
- gtk = declare_dependency(dependencies: [gtk, gtkx11])
+ gtk = declare_dependency(dependencies: [gtk, gtkx11],
+ version: gtk.version())
if not get_option('vte').auto() or have_system
vte = dependency('vte-2.91',
--
2.40.1
- [PULL 36/68] qemu.git: drop meson git submodule, (continued)
- [PULL 36/68] qemu.git: drop meson git submodule, Paolo Bonzini, 2023/05/17
- [PULL 40/68] configure: add --enable-pypi and --disable-pypi, Paolo Bonzini, 2023/05/17
- [PULL 42/68] configure: Add courtesy hint to Python version failure message, Paolo Bonzini, 2023/05/17
- [PULL 43/68] mkvenv: mark command as required, Paolo Bonzini, 2023/05/17
- [PULL 27/68] mkvenv: avoid ensurepip if pip is installed, Paolo Bonzini, 2023/05/17
- [PULL 57/68] build: move coroutine backend selection to meson, Paolo Bonzini, 2023/05/17
- [PULL 56/68] build: move SafeStack tests to meson, Paolo Bonzini, 2023/05/17
- [PULL 35/68] configure: use 'mkvenv ensure meson' to bootstrap meson, Paolo Bonzini, 2023/05/17
- [PULL 39/68] configure: bootstrap sphinx with mkvenv, Paolo Bonzini, 2023/05/17
- [PULL 44/68] python: bump some of the dependencies, Paolo Bonzini, 2023/05/17
- [PULL 49/68] meson: add more version numbers to the summary,
Paolo Bonzini <=
- [PULL 53/68] configure, meson: move --enable-modules to Meson, Paolo Bonzini, 2023/05/17
- [PULL 59/68] build: move warning flag selection to meson, Paolo Bonzini, 2023/05/17
- [PULL 60/68] build: move remaining compiler flag tests to meson, Paolo Bonzini, 2023/05/17
- [PULL 67/68] configure: remove unnecessary check, Paolo Bonzini, 2023/05/17
- [PULL 52/68] configure: remove pkg-config functions, Paolo Bonzini, 2023/05/17
- [PULL 58/68] build: move stack protector flag selection to meson, Paolo Bonzini, 2023/05/17
- [PULL 66/68] configure: reorder option parsing code, Paolo Bonzini, 2023/05/17
- [PULL 63/68] configure: remove compiler sanity check, Paolo Bonzini, 2023/05/17