From 96c3e78e110a7c9df8811611e01ebca8790e3201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B3=BD=E5=87=A1?= Date: Tue, 31 Dec 2024 08:02:31 +0000 Subject: [PATCH 1/2] update BUILD.gn. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李泽凡 --- BUILD.gn | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 88cd30b1..24d243ee 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -210,6 +210,18 @@ ohos_static_library("websockets") { "//third_party/libwebsockets/lib/roles/ws/ext", "//third_party/libwebsockets/lib/roles/raw-file", ] + if (is_arkui_x) { + deps = [ + "//third_party/openssl:libcrypto_shared", + "//third_party/openssl:libssl_shared", + ] + include_dirs += [ + "//third_party/openssl/include/openssl", + "//third_party/openssl/crypto/evp", + "//third_party/glib/glib", + "//third_party/glib", + ] + } if (target_os == "ios") { sources += [ "//third_party/libwebsockets/lib/core-net/vhost_ios.c" ] -- Gitee From b0ea8e141fd7b8e81e070a84dc06a36c0812ccec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B3=BD=E5=87=A1?= Date: Tue, 31 Dec 2024 09:49:34 +0000 Subject: [PATCH 2/2] update BUILD.gn. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李泽凡 --- BUILD.gn | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 24d243ee..d6d41e02 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -210,17 +210,18 @@ ohos_static_library("websockets") { "//third_party/libwebsockets/lib/roles/ws/ext", "//third_party/libwebsockets/lib/roles/raw-file", ] + if (is_arkui_x) { - deps = [ - "//third_party/openssl:libcrypto_shared", - "//third_party/openssl:libssl_shared", - ] - include_dirs += [ - "//third_party/openssl/include/openssl", - "//third_party/openssl/crypto/evp", - "//third_party/glib/glib", - "//third_party/glib", - ] + deps = [ + "//third_party/openssl:libcrypto_shared", + "//third_party/openssl:libssl_shared", + ] + include_dirs += [ + "//third_party/openssl/include/openssl", + "//third_party/openssl/crypto/evp", + "//third_party/glib/glib", + "//third_party/glib", + ] } if (target_os == "ios") { -- Gitee