diff --git a/base/BUILD.gn b/base/BUILD.gn index c51b8ead72f91c5ae584e1c82f374c7aa2b1ce09..4354719cf741e80c8b725e2022e3d19ecc8cd5da 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -65,7 +65,9 @@ sources_utils = [ ohos_static_library("utilsbase") { sources = sources_utils all_dependent_configs = [ ":utils_all_dependent_configs" ] - defines = [ "CONFIG_HILOG" ] + if (current_os != "android" && current_os != "ios") { + defines = [ "CONFIG_HILOG" ] + } external_deps = [ "hilog_native:libhilog_base" ] public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] @@ -77,7 +79,9 @@ ohos_static_library("utilsbase_rtti") { visibility = [ "//foundation/multimedia/histreamer/engine/plugin/plugins/source/video_capture:std_video_capture" ] sources = sources_utils all_dependent_configs = [ ":utils_all_dependent_configs" ] - defines = [ "CONFIG_HILOG" ] + if (current_os != "android" && current_os != "ios") { + defines = [ "CONFIG_HILOG" ] + } external_deps = [ "hilog_native:libhilog_base" ] public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] remove_configs = [ "//build/config/compiler:no_rtti" ] @@ -89,7 +93,9 @@ ohos_static_library("utilsbase_rtti") { ohos_shared_library("utils") { sources = sources_utils all_dependent_configs = [ ":utils_all_dependent_configs" ] - defines = [ "CONFIG_HILOG" ] + if (current_os != "android" && current_os != "ios") { + defines = [ "CONFIG_HILOG" ] + } external_deps = [ "hilog_native:libhilog_base" ] public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]