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/adapter/uhdf2/uhdf.gni") 17 18RIL_ADAPTER = "//base/telephony" 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/ril_adapter/services/hril/include", 37 "//drivers/adapter/uhdf2/include/hdi", 38 "//third_party/json/include", 39 ] 40 41 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 42 43 defines += [ 44 "TELEPHONY_LOG_TAG = \"Hril\"", 45 "LOG_DOMAIN = 0xD002B01", 46 ] 47 48 deps = [ 49 "//base/miscservices/time/services:time_service", 50 "//base/telephony/ril_adapter/interfaces/innerkits:hril_innerkits", 51 "//drivers/adapter/uhdf2/host:libhdf_host", 52 "//drivers/adapter/uhdf2/ipc:libhdf_ipc_adapter", 53 "//drivers/adapter/uhdf2/utils:libhdf_utils", 54 "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr:distributedschedsvr", 55 ] 56 57 external_deps = [ 58 "ability_base:want", 59 "ability_runtime:wantagent_innerkits", 60 "ipc:ipc_core", 61 "safwk:system_ability_fwk", 62 "samgr_standard:samgr_proxy", 63 "startup_l2:syspara", 64 ] 65 66 public_deps = [ "//utils/native/base:utils" ] 67 68 if (is_standard_system) { 69 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 70 } else { 71 external_deps += [ "hilog:libhilog" ] 72 } 73 74 #install_images = [ "vendor" ] 75 76 part_name = "ril_adapter" 77 subsystem_name = "telephony" 78} 79