1# Copyright (c) 2022 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. 13import("//build/ohos.gni") 14import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 15 16ohos_shared_library("libril_service_1.0") { 17 include_dirs = [ 18 "include", 19 "//base/telephony/ril_adapter/services/hril/include", 20 ] 21 sources = [ "src/ril_impl.cpp" ] 22 deps = [ "//base/telephony/ril_adapter/services/hril:hril" ] 23 24 defines = [ 25 "LOG_TAG = \"RilService\"", 26 "LOG_DOMAIN = 0xD001F08", 27 ] 28 if (is_standard_system) { 29 external_deps = [ 30 "c_utils:utils", 31 "drivers_interface_power:libpower_proxy_1.0", 32 "drivers_interface_ril:ril_idl_headers", 33 "hiviewdfx_hilog_native:libhilog", 34 "ipc:ipc_single", 35 ] 36 } else { 37 external_deps = [ 38 "hilog:libhilog", 39 "ipc:ipc_single", 40 ] 41 } 42 43 install_images = [ chipset_base_dir ] 44 subsystem_name = "hdf" 45 part_name = "drivers_peripheral_ril" 46} 47 48############################################################################################## 49 50ohos_shared_library("libril_driver") { 51 include_dirs = [ 52 "include", 53 "//base/telephony/ril_adapter/services/hril_hdf/include", 54 ] 55 sources = [ "src/ril_driver.cpp" ] 56 57 deps = [ 58 "//base/telephony/ril_adapter/services/hril_hdf:hril_hdf", 59 "//drivers/interface/ril/v1_0:libril_stub_1.0", 60 ] 61 62 if (is_standard_system) { 63 external_deps = [ 64 "c_utils:utils", 65 "hdf_core:libhdf_ipc_adapter", 66 "hdf_core:libhdi", 67 "hiviewdfx_hilog_native:libhilog", 68 "ipc:ipc_single", 69 ] 70 } else { 71 external_deps = [ 72 "hilog:libhilog", 73 "ipc:ipc_single", 74 ] 75 } 76 77 install_images = [ chipset_base_dir ] 78 subsystem_name = "hdf" 79 part_name = "drivers_peripheral_ril" 80} 81 82group("hdf_ril") { 83 deps = [ 84 ":libril_driver", 85 ":libril_service_1.0", 86 ] 87} 88