From 113ba10d4b07dd4fabe64c4f46d0e416724b188a Mon Sep 17 00:00:00 2001 From: cuican Date: Mon, 5 Feb 2024 20:14:26 +0800 Subject: [PATCH] =?UTF-8?q?c=5Futils=20=E9=83=A8=E4=BB=B6=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E7=BC=96=E8=AF=91=E8=A7=84=E8=8C=83=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cuican --- base/BUILD.gn | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/base/BUILD.gn b/base/BUILD.gn index c24ef50..03ab130 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -99,8 +99,9 @@ ohos_static_library("utilsbase") { if (current_os == "ios") { sources = sources_utils_ios configs = [ ":utils_coverage_config" ] - all_dependent_configs = [ ":utils_config" ] - public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] + public_configs = [ ":utils_config" ] + #public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] + public_external_deps = [ "bounds_checking_function:libsec_static" ] defines = [ "IOS_PLATFORM" ] subsystem_name = "commonlibrary" @@ -108,7 +109,7 @@ ohos_static_library("utilsbase") { } else { sources = sources_utils configs = [ ":utils_coverage_config" ] - all_dependent_configs = [ ":utils_config" ] + public_configs = [ ":utils_config" ] if (current_os != "android" && current_os != "ios") { defines = [ "CONFIG_HILOG" ] } @@ -116,8 +117,8 @@ ohos_static_library("utilsbase") { configs += [ ":debug_log_enabled" ] } external_deps = [ "hilog:libhilog_base" ] - public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] - + #public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] + public_external_deps = [ "bounds_checking_function:libsec_static" ] subsystem_name = "commonlibrary" part_name = "c_utils" } @@ -126,12 +127,14 @@ ohos_static_library("utilsbase") { ohos_static_library("utilsbase_rtti") { visibility = [ "//foundation/multimedia/media_foundation/engine/plugin/plugins/source/video_capture:std_video_capture" ] sources = sources_utils - all_dependent_configs = [ ":utils_config" ] + #all_dependent_configs = [ ":utils_config" ] + public_configs = [ ":utils_config" ] if (current_os != "android" && current_os != "ios") { defines = [ "CONFIG_HILOG" ] } external_deps = [ "hilog:libhilog_base" ] - public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] + #public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] + public_external_deps = [ "bounds_checking_function:libsec_static" ] remove_configs = [ "//build/config/compiler:no_rtti" ] cflags = [ "-frtti" ] subsystem_name = "commonlibrary" @@ -148,7 +151,7 @@ ohos_shared_library("utils") { sources = sources_utils_ios configs = [ ":utils_coverage_config" ] all_dependent_configs = [ ":utils_config" ] - public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] + public_external_deps = [ "bounds_checking_function:libsec_shared" ] defines = [ "IOS_PLATFORM" ] subsystem_name = "commonlibrary" @@ -185,8 +188,7 @@ ohos_shared_library("utils") { configs += [ ":debug_log_enabled" ] } external_deps = [ "hilog:libhilog_base" ] - public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] - + public_external_deps = [ "bounds_checking_function:libsec_shared" ] subsystem_name = "commonlibrary" part_name = "c_utils" install_images = [ @@ -226,8 +228,7 @@ if (host_os == "linux" && !is_arkui_x) { ":cxx_rust_gen", "//third_party/rust/crates/cxx:cxx_cppdeps", ] - public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] - + public_external_deps = [ "bounds_checking_function:libsec_shared" ] subsystem_name = "commonlibrary" part_name = "c_utils" } -- Gitee