diff --git a/frameworks/i18n/BUILD.gn b/frameworks/i18n/BUILD.gn index b995e9ed8e705710e97e46b61b8285d6f230ff48..6d9cd2ac457d237592cc3746c0c964d41cc664b6 100644 --- a/frameworks/i18n/BUILD.gn +++ b/frameworks/i18n/BUILD.gn @@ -38,9 +38,8 @@ locale_sources = [ config("locale_config") { include_dirs = [ - "//base/global/i18n_lite/interfaces/kits/i18n/include", - "//base/global/i18n_lite/frameworks/i18n/include", - "//third_party/bounds_checking_function/include", + "../../interfaces/kits/i18n/include", + "include", ] } @@ -54,27 +53,23 @@ if (defined(ohos_lite)) { static_library("global_i18n") { sources = locale_sources public_configs = [ ":locale_config" ] - deps = [ - ":global_dat", - "//third_party/bounds_checking_function:libsec_static", - ] + deps = [ ":global_dat" ] + external_deps = [ "bounds_checking_function:libsec_static" ] if (i18n_lite_support_i18n_product) { include_dirs = [ "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite", "//commonlibrary/utils_lite/memory/include", ] defines = [ "I18N_PRODUCT" ] - deps += [ "//commonlibrary/utils_lite:utils" ] + external_deps += [ "utils_lite:utils" ] } } } else { shared_library("global_i18n") { sources = locale_sources public_configs = [ ":locale_config" ] - deps = [ - ":global_dat", - "//third_party/bounds_checking_function:libsec_shared", - ] + deps = [ ":global_dat" ] + external_deps = [ "bounds_checking_function:libsec_shared" ] } } diff --git a/frameworks/i18n/test/BUILD.gn b/frameworks/i18n/test/BUILD.gn index dfdc8312a14d8a7dc1683758c7e8af3e3f4fc547..66cd3225e737edc8bf947bd60b6ea10e764d5f8d 100644 --- a/frameworks/i18n/test/BUILD.gn +++ b/frameworks/i18n/test/BUILD.gn @@ -21,11 +21,11 @@ if (ohos_kernel_type != "liteos_m") { sources = [ "unittest/lite/common/i18n_test.cpp" ] include_dirs = [ - "//base/global/i18n_lite/interfaces/kits/i18n/include", - "//base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common", + "../../../interfaces/kits/i18n/include", + "unittest/lite/common", ] - deps = [ "//base/global/i18n_lite/frameworks/i18n:global_i18n" ] + deps = [ "../../../frameworks/i18n:global_i18n" ] output_dir = "$root_out_dir/test/unittest/global" } diff --git a/interfaces/kits/BUILD.gn b/interfaces/kits/BUILD.gn index b5ca041019e6a11313c0870235181cf2d512aa0d..bb914d940dd58904e92e16c3c80164cd02fe1455 100644 --- a/interfaces/kits/BUILD.gn +++ b/interfaces/kits/BUILD.gn @@ -14,7 +14,7 @@ import("//build/ohos.gni") ohos_prebuilt_etc("i18n_dat") { - source = "//base/global/i18n_lite/frameworks/i18n/i18n.dat" + source = "../../frameworks/i18n/i18n.dat" module_install_dir = "system/i18n" part_name = "i18n_lite" subsystem_name = "global" diff --git a/interfaces/kits/js/builtin/BUILD.gn b/interfaces/kits/js/builtin/BUILD.gn index 03424270df236d43002494a752655cd1679a0781..3b4c78ba70d6bf6e23946474950465151ee390f1 100644 --- a/interfaces/kits/js/builtin/BUILD.gn +++ b/interfaces/kits/js/builtin/BUILD.gn @@ -40,7 +40,7 @@ ohos_static_library("nativeapi_locale_simulator") { "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi", "//commonlibrary/utils_lite/include", ] - deps = [ "//third_party/bounds_checking_function:libsec_static" ] + external_deps = [ "bounds_checking_function:libsec_static" ] configs = [ ":nativeapi_locale_simulator_config" ] }