diff --git a/BUILD.gn b/BUILD.gn index 70eb2187f72f0e2faadb48b4a99204692e3c0db3..88cd30b1d66fb8710ccda7a48ee39204dc40af78 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -209,12 +209,6 @@ ohos_static_library("websockets") { "//third_party/libwebsockets/lib/roles/ws", "//third_party/libwebsockets/lib/roles/ws/ext", "//third_party/libwebsockets/lib/roles/raw-file", - - ################################################# - "//third_party/openssl/include/openssl", - "//third_party/openssl/crypto/evp", - "//third_party/glib/glib", - "//third_party/glib", ] if (target_os == "ios") { @@ -244,11 +238,12 @@ ohos_static_library("websockets") { "-pipe", ] - deps = [ - "//third_party/openssl:libcrypto_shared", - "//third_party/openssl:libssl_shared", + external_deps = [ + "glib:glib", + "openssl:libcrypto_shared", + "openssl:libssl_shared", + "zlib:libz", ] - external_deps = [ "zlib:libz" ] public_configs = [ ":websockets_public_config" ] } diff --git a/bundle.json b/bundle.json index 06afa3b26399a6af60aa981a193a55151da3cd7f..255dace3f9dcba162f0be29de288a27f9d77d491 100644 --- a/bundle.json +++ b/bundle.json @@ -19,10 +19,12 @@ "rom": "319KB", "ram": "13865KB", "deps": { - "components": [ "zlib" ], - "third_party": [ - "openssl" - ] + "components": [ + "glib", + "openssl", + "zlib" + ], + "third_party": [] }, "build": { "sub_component": [],