From 23e414fd3715dfabf1dd08d4649accbb0157d99f Mon Sep 17 00:00:00 2001 From: quguiren Date: Wed, 10 May 2023 10:34:48 +0800 Subject: [PATCH] fix ios build Signed-off-by: quguiren --- BUILD.gn | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 1ed32764..49988033 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -241,11 +241,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:ssl_source", + ] + } else { + deps += [ + "//third_party/openssl:libcrypto_shared", + "//third_party/openssl:libssl_shared", + ] + } } config("websocket_config") { -- Gitee