meson: Enable curl platform-specific features

This commit is contained in:
Matt Borgerson 2025-03-07 23:28:29 -07:00 committed by mborgerson
parent f305279f67
commit 67bb27f760
1 changed files with 10 additions and 4 deletions

View File

@ -1387,9 +1387,15 @@ curl = dependency('libcurl', version: '>=7.29.0',
method: 'pkg-config',
required: false)
if not curl.found()
curl_sub = subproject('curl', default_options: [
'schannel=enabled',
'sspi=enabled',
if host_os == 'windows'
curl_platform_opts = ['schannel=enabled', 'sspi=enabled']
elif host_os == 'darwin'
curl_platform_opts = ['secure-transport=enabled']
else
curl_platform_opts = ['openssl=enabled']
endif
curl_sub = subproject('curl',
default_options: [
'ssl=enabled',
'http=enabled',
'ftp=enabled',
@ -1408,7 +1414,7 @@ if not curl.found()
'telnet=disabled',
'tftp=disabled',
'default_library=static',
])
] + curl_platform_opts)
curl = curl_sub.get_variable('curl_dep')
endif
libudev = not_found