1# Copyright (C) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//base/telephony/core_service/telephony.gni") 15import("//build/ohos.gni") 16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 17 18RIL_ADAPTER = "//base/telephony/ril_adapter" 19RIL_HRIL = "//base/telephony/ril_adapter/services/hril/src" 20 21ohos_shared_library("hril") { 22 sources = [ 23 "$RIL_HRIL/hril_base.cpp", 24 "$RIL_HRIL/hril_call.cpp", 25 "$RIL_HRIL/hril_data.cpp", 26 "$RIL_HRIL/hril_event.cpp", 27 "$RIL_HRIL/hril_manager.cpp", 28 "$RIL_HRIL/hril_modem.cpp", 29 "$RIL_HRIL/hril_network.cpp", 30 "$RIL_HRIL/hril_sim.cpp", 31 "$RIL_HRIL/hril_sms.cpp", 32 "$RIL_HRIL/hril_timer_callback.cpp", 33 ] 34 35 include_dirs = [ 36 "$RIL_ADAPTER/services/hril/include", 37 "//drivers/hdf_core/adapter/uhdf2/include/hdi", 38 "//third_party/json/include", 39 ] 40 41 configs = [ "$RIL_ADAPTER/utils:utils_config" ] 42 43 defines += [ 44 "TELEPHONY_LOG_TAG = \"Hril\"", 45 "LOG_DOMAIN = 0xD001F08", 46 ] 47 48 deps = [ 49 "//base/telephony/ril_adapter/interfaces/innerkits:hril_innerkits", 50 "//drivers/hdf_core/adapter/uhdf2/ipc:libhdf_ipc_adapter", 51 "//drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils", 52 ] 53 54 external_deps = [ 55 "drivers_interface_power:libpower_proxy_1.0", 56 "drivers_interface_ril:ril_idl_headers", 57 "init:libbegetutil", 58 "ipc:ipc_single", 59 ] 60 61 public_deps = [ "//commonlibrary/c_utils/base:utils" ] 62 63 if (is_standard_system) { 64 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 65 } else { 66 external_deps += [ "hilog:libhilog" ] 67 } 68 69 install_images = [ chipset_base_dir ] 70 part_name = "ril_adapter" 71 subsystem_name = "telephony" 72} 73