From ffb10bf654fbbaab3066ecf10206fb7817a340af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=B9=BF=E7=94=9F?= Date: Thu, 29 Feb 2024 03:42:03 +0000 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E4=BB=B6=E7=8B=AC=E7=AB=8B=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 马广生 --- base/BUILD.gn | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/base/BUILD.gn b/base/BUILD.gn index c24ef50..657fc9a 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -99,8 +99,10 @@ ohos_static_library("utilsbase") { if (current_os == "ios") { sources = sources_utils_ios configs = [ ":utils_coverage_config" ] + public_configs = [ ":utils_config" ] all_dependent_configs = [ ":utils_config" ] - 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" ] defines = [ "IOS_PLATFORM" ] subsystem_name = "commonlibrary" @@ -109,6 +111,7 @@ ohos_static_library("utilsbase") { 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 +119,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" } @@ -127,11 +130,13 @@ 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" ] + 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 +153,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 +190,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 +230,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