diff --git a/BUILD.gn b/BUILD.gn index 3ae3aedb3d2bed28974d64e207082c12a855c5ef..56581a15877b397130e103475bb8eed4c73fac01 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -63,9 +63,9 @@ ohos_shared_library("sqliteicu") { external_deps = [] if (is_cross_platform_build) { if (target_os == "ios") { - deps += [ "//third_party/bounds_checking_function:libsec_shared" ] + external_deps += [ "bounds_checking_function:libsec_shared" ] } else { - deps += [ "//commonlibrary/c_utils/base:utils" ] + external_deps += [ "c_utils:utils" ] } } else { external_deps += [ "c_utils:utils" ] @@ -134,9 +134,9 @@ ohos_shared_library("sqlite") { relative_install_dir = "platformsdk" if (is_cross_platform_build) { if (target_os == "ios") { - deps += [ "//third_party/bounds_checking_function:libsec_shared" ] + external_deps = [ "bounds_checking_function:libsec_shared" ] } else { - deps += [ "//commonlibrary/c_utils/base:utils" ] + external_deps = [ "c_utils:utils" ] } } else { external_deps = [ @@ -188,11 +188,7 @@ ohos_executable("sqlite3") { if (is_mingw || is_mac) { ohos_shared_library("sqlite_sdk") { - include_dirs = [ - "include", - "//third_party/bounds_checking_function/include", - "//third_party/openssl/include", - ] + include_dirs = [ "include" ] sources = [ "src/sqlite3.c" ] @@ -222,9 +218,9 @@ if (is_mingw || is_mac) { "OPENSSL_SUPPRESS_DEPRECATED", ] remove_configs = [ "//build/config/compiler:chromium_code" ] - deps = [ - "//third_party/bounds_checking_function:libsec_shared", - "//third_party/openssl:libcrypto_restool", + external_deps = [ + "bounds_checking_function:libsec_shared", + "openssl:libcrypto_restool", ] if (is_mingw) { libs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib/libws2_32.a" ] @@ -291,9 +287,9 @@ if (is_cross_platform_build) { "-Wno-implicit-fallthrough", ] - deps = [ - "//third_party/bounds_checking_function:libsec_static", - "//third_party/openssl:libcrypto_static", + external_deps = [ + "bounds_checking_function:libsec_static", + "openssl:libcrypto_static", ] public_configs = [ ":sqlite_config" ] configs = [ ":sqlite3_private_config" ] diff --git a/bundle.json b/bundle.json index 197082009ac9d50d9af5ca825798fd9cda15a344..18569a5e1946df9da350a3eabdd65bccaef0ebdf 100644 --- a/bundle.json +++ b/bundle.json @@ -22,7 +22,8 @@ "components": [ "c_utils", "icu", - "openssl" + "openssl", + "bounds_checking_function" ], "third_party": [ "openssl"