From c384701880df697f14b4f6da5103437173cbbc2e Mon Sep 17 00:00:00 2001 From: wylyw78 Date: Tue, 11 Jun 2024 21:08:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=82=E9=85=8DLinux=20arm=20host=20open?= =?UTF-8?q?harmony=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wylyw78 --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/BUILD.gn b/BUILD.gn index 5e56f7c5..3e5d0434 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -301,6 +301,7 @@ config("websockets_public_config") { "//third_party/libwebsockets/lib", "//third_party/libwebsockets/win32port/win32helpers", "//third_party/libwebsockets/include", + "//third_party/libwebsockets/lib/plat/unix", ] if (platform == "mingw_x86_64") { include_dirs += [ "//third_party/libwebsockets/lib/plat/windows" ] -- Gitee From db2b20594c271c64465e2c239d6f8bc12801e28b Mon Sep 17 00:00:00 2001 From: wenyu Date: Wed, 12 Jun 2024 12:13:54 +0000 Subject: [PATCH 2/2] update BUILD.gn. Signed-off-by: wenyu --- BUILD.gn | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 3e5d0434..d3309d55 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -301,12 +301,11 @@ config("websockets_public_config") { "//third_party/libwebsockets/lib", "//third_party/libwebsockets/win32port/win32helpers", "//third_party/libwebsockets/include", - "//third_party/libwebsockets/lib/plat/unix", ] if (platform == "mingw_x86_64") { include_dirs += [ "//third_party/libwebsockets/lib/plat/windows" ] } else if (platform == "mac_arm64" || platform == "mac_x64" || - platform == "linux_x64") { + platform == "linux_x64" || platform == "linux_arm64") { include_dirs += [ "//third_party/libwebsockets/lib/plat/unix" ] } cflags = [ "-Wno-error=#warnings" ] @@ -379,7 +378,7 @@ ohos_static_library("websockets_static") { "//third_party/libwebsockets/lib/plat/windows/windows-sockets.c", ] } else if (platform == "mac_arm64" || platform == "mac_x64" || - platform == "linux_x64") { + platform == "linux_x64" || platform == "linux_arm64") { defines = [ "LWS_HAVE_SYS_RESOURCE_H" ] sources += [ "//third_party/libwebsockets/lib/plat/unix/unix-caps.c", -- Gitee