From 98d70b16492b0dd2fa79244cacd3e5b9519316c4 Mon Sep 17 00:00:00 2001 From: RaphaelHuang Date: Wed, 23 Jul 2025 10:32:25 +0800 Subject: [PATCH] for independence build part2 Signed-off-by: RaphaelHuang --- BUILD.gn | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 6e788e3..ce86ac6 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -12,7 +12,22 @@ # limitations under the License. import("//build/ohos.gni") -import("../core_service/telephony_core_service.gni") + +declare_args() { + telephony_state_registry_hicollie_able = true + if (defined(global_parts_info) && + !defined(global_parts_info.hiviewdfx_hicollie)) { + telephony_state_registry_hicollie_able = false + } +} + +telephony_extra_defines = [] + +if (defined(global_parts_info) && + defined(global_parts_info.telephony_telephony_enhanced)) { + telephony_extra_defines += [ "OHOS_BUILD_ENABLE_TELEPHONY_EXT" ] + telephony_extra_defines += [ "OHOS_BUILD_ENABLE_TELEPHONY_VSIM" ] +} ohos_shared_library("tel_state_registry") { sanitize = { @@ -64,7 +79,7 @@ ohos_shared_library("tel_state_registry") { "LOG_DOMAIN = 0xD001F07", ] - if (telephony_hicollie_able) { + if (telephony_state_registry_hicollie_able) { external_deps += [ "hicollie:libhicollie" ] defines += [ "HICOLLIE_ENABLE" ] }