mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
curl: convert to meson
Reviewed-by: Daniel Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8e4e2b551d
commit
f9cd86fe72
4 changed files with 14 additions and 32 deletions
11
meson.build
11
meson.build
|
@ -396,9 +396,11 @@ if 'CONFIG_VIRGL' in config_host
|
|||
link_args: config_host['VIRGL_LIBS'].split())
|
||||
endif
|
||||
curl = not_found
|
||||
if 'CONFIG_CURL' in config_host
|
||||
curl = declare_dependency(compile_args: config_host['CURL_CFLAGS'].split(),
|
||||
link_args: config_host['CURL_LIBS'].split())
|
||||
if not get_option('curl').auto() or have_block
|
||||
curl = dependency('libcurl', version: '>=7.29.0',
|
||||
method: 'pkg-config',
|
||||
required: get_option('curl'),
|
||||
static: enable_static)
|
||||
endif
|
||||
libudev = not_found
|
||||
if targetos == 'linux' and (have_system or have_tools)
|
||||
|
@ -876,6 +878,7 @@ config_host_data.set('CONFIG_COCOA', cocoa.found())
|
|||
config_host_data.set('CONFIG_LIBUDEV', libudev.found())
|
||||
config_host_data.set('CONFIG_MPATH', mpathpersist.found())
|
||||
config_host_data.set('CONFIG_MPATH_NEW_API', mpathpersist_new_api)
|
||||
config_host_data.set('CONFIG_CURL', curl.found())
|
||||
config_host_data.set('CONFIG_CURSES', curses.found())
|
||||
config_host_data.set('CONFIG_SDL', sdl.found())
|
||||
config_host_data.set('CONFIG_SDL_IMAGE', sdl_image.found())
|
||||
|
@ -2165,7 +2168,7 @@ summary_info += {'iconv support': iconv.found()}
|
|||
summary_info += {'curses support': curses.found()}
|
||||
# TODO: add back version
|
||||
summary_info += {'virgl support': config_host.has_key('CONFIG_VIRGL')}
|
||||
summary_info += {'curl support': config_host.has_key('CONFIG_CURL')}
|
||||
summary_info += {'curl support': curl.found()}
|
||||
summary_info += {'mingw32 support': targetos == 'windows'}
|
||||
summary_info += {'Audio drivers': config_host['CONFIG_AUDIO_DRIVERS']}
|
||||
summary_info += {'Block whitelist (rw)': config_host['CONFIG_BDRV_RW_WHITELIST']}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue