From 44b3a5f7e87bbe130d91c41777375c96e61f3a2c Mon Sep 17 00:00:00 2001 From: zwtmichael Date: Sun, 28 Apr 2024 20:26:11 +0800 Subject: [PATCH] components optimize Signed-off-by: zwtmichael --- BUILD.gn | 13 +++++++------ bundle.json | 3 ++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 4e61fb9..47b0622 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -17,10 +17,7 @@ is_cross_platform_build = defined(is_arkui_x) && is_arkui_x # Lets callers do '#include ' config("sqlite_config") { - include_dirs = [ - "include", - "//commonlibrary/c_utils/base/include", - ] + include_dirs = [ "include" ] } # This is the configuration used to build sqlite itself. @@ -90,8 +87,9 @@ ohos_shared_library("sqlite") { if (target_os != "ios") { ldflags = [ "-Wl,--exclude-libs,ALL" ] } - deps = [ "//third_party/openssl:libcrypto_shared" ] + deps = [] public_configs = [ ":sqlite_config" ] + public_external_deps = [ "c_utils:utilsbase" ] configs = [ ":sqlite3_private_config" ] innerapi_tags = [ "platformsdk_indirect" ] part_name = "sqlite" @@ -105,7 +103,10 @@ ohos_shared_library("sqlite") { deps += [ "//commonlibrary/c_utils/base:utils" ] } } else { - external_deps = [ "c_utils:utils" ] + external_deps = [ + "c_utils:utils", + "openssl:libcrypto_shared", + ] } } diff --git a/bundle.json b/bundle.json index deab626..c2501b6 100644 --- a/bundle.json +++ b/bundle.json @@ -20,7 +20,8 @@ "ram": "1024KB", "deps": { "components": [ - "c_utils" + "c_utils", + "openssl" ], "third_party": [ "openssl" -- Gitee