diff --git a/BUILD.gn b/BUILD.gn index 4e61fb9655be0039c931e555ec2d8eae59982be1..47b06223534638a4af5ab2abbc4e9609a71ee1af 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 deab626196d8c7102c6866c4a800091a16c8fa73..c2501b66ea765436bda9916299d994b5cd034fa6 100644 --- a/bundle.json +++ b/bundle.json @@ -20,7 +20,8 @@ "ram": "1024KB", "deps": { "components": [ - "c_utils" + "c_utils", + "openssl" ], "third_party": [ "openssl"