From 67bb27f7604ff10a6cf3c747e54718032daaef81 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Fri, 7 Mar 2025 23:28:29 -0700 Subject: [PATCH] meson: Enable curl platform-specific features --- meson.build | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index a77b79b5ad..7cd48b8ded 100644 --- a/meson.build +++ b/meson.build @@ -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