mirror of https://github.com/xemu-project/xemu.git
meson: Add libcurl subproject fallback
This commit is contained in:
parent
714ec0c4da
commit
3decda5614
27
meson.build
27
meson.build
|
@ -1385,7 +1385,32 @@ if not get_option('blkio').auto() or have_block
|
|||
endif
|
||||
curl = dependency('libcurl', version: '>=7.29.0',
|
||||
method: 'pkg-config',
|
||||
required: true)
|
||||
required: false)
|
||||
if not curl.found()
|
||||
curl_sub = subproject('curl', default_options: [
|
||||
'schannel=enabled',
|
||||
'sspi=enabled',
|
||||
'ssl=enabled',
|
||||
'http=enabled',
|
||||
'ftp=enabled',
|
||||
'dict=disabled',
|
||||
'file=disabled',
|
||||
'gopher=disabled',
|
||||
'imap=disabled',
|
||||
'ldap=disabled',
|
||||
'ldaps=disabled',
|
||||
'mqtt=disabled',
|
||||
'pop3=disabled',
|
||||
'rtmp=disabled',
|
||||
'rtsp=disabled',
|
||||
'smb=disabled',
|
||||
'smtp=disabled',
|
||||
'telnet=disabled',
|
||||
'tftp=disabled',
|
||||
'default_library=static',
|
||||
])
|
||||
curl = curl_sub.get_variable('curl_dep')
|
||||
endif
|
||||
libudev = not_found
|
||||
if host_os == 'linux' and (have_system or have_tools)
|
||||
libudev = dependency('libudev',
|
||||
|
|
|
@ -29,3 +29,4 @@ xxHash-*
|
|||
imgui
|
||||
implot
|
||||
genconfig
|
||||
curl-*
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
[wrap-file]
|
||||
directory = curl-8.10.1
|
||||
source_url = https://github.com/curl/curl/releases/download/curl-8_10_1/curl-8.10.1.tar.xz
|
||||
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/curl_8.10.1-1/curl-8.10.1.tar.xz
|
||||
source_filename = curl-8.10.1.tar.xz
|
||||
source_hash = 73a4b0e99596a09fa5924a4fb7e4b995a85fda0d18a2c02ab9cf134bebce04ee
|
||||
patch_filename = curl_8.10.1-1_patch.zip
|
||||
patch_url = https://wrapdb.mesonbuild.com/v2/curl_8.10.1-1/get_patch
|
||||
patch_hash = 707c28f35fc9b0e8d68c0c2800712007612f922a31da9637ce706a2159f3ddd8
|
||||
wrapdb_version = 8.10.1-1
|
||||
|
||||
[provide]
|
||||
dependency_names = libcurl
|
Loading…
Reference in New Issue