meson: multiple names can be passed to dependency()
This is new in Meson 0.60.0. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8a29c20597
commit
6d3226357f
@ -830,14 +830,10 @@ if have_system and get_option('curses').allowed()
|
|||||||
}'''
|
}'''
|
||||||
|
|
||||||
curses_dep_list = targetos == 'windows' ? ['ncurses', 'ncursesw'] : ['ncursesw']
|
curses_dep_list = targetos == 'windows' ? ['ncurses', 'ncursesw'] : ['ncursesw']
|
||||||
foreach curses_dep : curses_dep_list
|
curses = dependency(curses_dep_list,
|
||||||
if not curses.found()
|
|
||||||
curses = dependency(curses_dep,
|
|
||||||
required: false,
|
required: false,
|
||||||
method: 'pkg-config',
|
method: 'pkg-config',
|
||||||
kwargs: static_kwargs)
|
kwargs: static_kwargs)
|
||||||
endif
|
|
||||||
endforeach
|
|
||||||
msg = get_option('curses').enabled() ? 'curses library not found' : ''
|
msg = get_option('curses').enabled() ? 'curses library not found' : ''
|
||||||
curses_compile_args = ['-DNCURSES_WIDECHAR=1']
|
curses_compile_args = ['-DNCURSES_WIDECHAR=1']
|
||||||
if curses.found()
|
if curses.found()
|
||||||
|
Loading…
Reference in New Issue
Block a user