[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/5] meson: multiple names can be passed to dependency()
From: |
Marc-André Lureau |
Subject: |
Re: [PATCH 3/5] meson: multiple names can be passed to dependency() |
Date: |
Tue, 27 Sep 2022 14:54:36 +0400 |
On Tue, Sep 27, 2022 at 1:59 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> This is new in Meson 0.60.0.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> meson.build | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index 8be01ba1c3..e1700d1d55 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -825,14 +825,10 @@ if have_system and get_option('curses').allowed()
> }'''
>
> curses_dep_list = targetos == 'windows' ? ['ncurses', 'ncursesw'] :
> ['ncursesw']
> - foreach curses_dep : curses_dep_list
> - if not curses.found()
> - curses = dependency(curses_dep,
> - required: false,
> - method: 'pkg-config',
> - kwargs: static_kwargs)
> - endif
> - endforeach
> + curses = dependency(curses_dep_list,
> + required: false,
> + method: 'pkg-config',
> + kwargs: static_kwargs)
> msg = get_option('curses').enabled() ? 'curses library not found' : ''
> curses_compile_args = ['-DNCURSES_WIDECHAR=1']
> if curses.found()
> --
> 2.37.3
>
- [PATCH 0/5] Small meson updates for QEMU 7.2, Paolo Bonzini, 2022/09/27
- [PATCH 1/5] ui: fix path to dbus-display1.h, Paolo Bonzini, 2022/09/27
- [PATCH 2/5] meson: require 0.61.3, Paolo Bonzini, 2022/09/27
- [PATCH 3/5] meson: multiple names can be passed to dependency(), Paolo Bonzini, 2022/09/27
- Re: [PATCH 3/5] meson: multiple names can be passed to dependency(),
Marc-André Lureau <=
- [PATCH 4/5] configure, meson: move C++ compiler detection to meson.build, Paolo Bonzini, 2022/09/27
[PATCH 5/5] configure, meson: move linker flag detection to meson, Paolo Bonzini, 2022/09/27