From 60a92615e796a7a7f2388c8c62eb7b271e923beb Mon Sep 17 00:00:00 2001 From: benlau Date: Thu, 23 Jan 2025 09:33:37 +0800 Subject: [PATCH] third party Signed-off-by: heqianmo Signed-off-by: benlau --- BUILD.gn | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index d3309d55..27a7ac39 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -244,11 +244,19 @@ ohos_static_library("websockets") { "-pipe", ] - deps = [ - "//third_party/openssl:libcrypto_shared", - "//third_party/openssl:libssl_shared", - "//third_party/zlib:libz", - ] + deps = [ "//third_party/zlib:libz" ] + + if (target_os == "ios") { + deps += [ + "//third_party/openssl:libcrypto_static", + "//third_party/openssl:libssl_static", + ] + } else { + deps += [ + "//third_party/openssl:libcrypto_shared", + "//third_party/openssl:libssl_shared", + ] + } } config("websocket_config") { -- Gitee