diff --git a/BUILD.gn b/BUILD.gn index 04f5cd316a2bf9f30198f0a548e8c7a0a620555b..5e56f7c58c8e898c7a3155328cf71b60192802c9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -244,19 +244,11 @@ ohos_static_library("websockets") { "-pipe", ] - 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", - ] - } + deps = [ + "//third_party/openssl:libcrypto_shared", + "//third_party/openssl:libssl_shared", + "//third_party/zlib:libz", + ] } config("websocket_config") {