mirror of
https://github.com/openharmony/telephony_state_registry.git
synced 2026-07-01 06:48:24 -04:00
98d70b1649
Signed-off-by: RaphaelHuang <huangwei102@huawei.com>
89 lines
2.5 KiB
Plaintext
89 lines
2.5 KiB
Plaintext
# Copyright (C) 2021 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//build/ohos.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 = {
|
|
cfi = true
|
|
cfi_cross_dso = true
|
|
debug = false
|
|
}
|
|
branch_protector_ret = "pac_ret"
|
|
part_name = "state_registry"
|
|
subsystem_name = "telephony"
|
|
|
|
sources = [
|
|
"frameworks/native/observer/src/telephony_observer_proxy.cpp",
|
|
"services/src/telephony_state_registry_dump_helper.cpp",
|
|
"services/src/telephony_state_registry_record.cpp",
|
|
"services/src/telephony_state_registry_service.cpp",
|
|
"services/src/telephony_state_registry_stub.cpp",
|
|
"services/telephony_ext_wrapper/src/telephony_ext_wrapper.cpp",
|
|
]
|
|
|
|
include_dirs = [
|
|
"frameworks/native/observer/include",
|
|
"frameworks/native/common/include",
|
|
"services/include",
|
|
"services/telephony_ext_wrapper/include",
|
|
]
|
|
|
|
external_deps = [
|
|
"ability_base:want",
|
|
"access_token:libaccesstoken_sdk",
|
|
"c_utils:utils",
|
|
"common_event_service:cesfwk_innerkits",
|
|
"core_service:libtel_common",
|
|
"core_service:tel_core_service_api",
|
|
"hilog:libhilog",
|
|
"init:libbegetutil",
|
|
"ipc:ipc_core",
|
|
"safwk:system_ability_fwk",
|
|
"samgr:samgr_proxy",
|
|
]
|
|
|
|
cflags_cc = [
|
|
"-O2",
|
|
"-D_FORTIFY_SOURCE=2",
|
|
]
|
|
|
|
defines = [
|
|
"TELEPHONY_LOG_TAG = \"StateRegistry\"",
|
|
"LOG_DOMAIN = 0xD001F07",
|
|
]
|
|
|
|
if (telephony_state_registry_hicollie_able) {
|
|
external_deps += [ "hicollie:libhicollie" ]
|
|
defines += [ "HICOLLIE_ENABLE" ]
|
|
}
|
|
|
|
defines += telephony_extra_defines
|
|
}
|