From b07d0721d04023bd42df454ab59e0e1c3b9af4d7 Mon Sep 17 00:00:00 2001 From: jackyetpan Date: Tue, 21 Jan 2025 10:09:15 +0800 Subject: [PATCH] third party Signed-off-by: heqianmo --- BUILD.gn | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index d6d41e02..a30b1cfa 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -211,11 +211,20 @@ ohos_static_library("websockets") { "//third_party/libwebsockets/lib/roles/raw-file", ] + deps = [] + if (is_arkui_x) { - deps = [ - "//third_party/openssl:libcrypto_shared", - "//third_party/openssl:libssl_shared", - ] + 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", + ] + } include_dirs += [ "//third_party/openssl/include/openssl", "//third_party/openssl/crypto/evp", -- Gitee