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") 14 15ohos_shared_library("libril_service_1.5") { 16 include_dirs = [ "include" ] 17 sources = [ "src/ril_impl.cpp" ] 18 19 defines = [ 20 "LOG_TAG = \"RilService\"", 21 "LOG_DOMAIN = 0xD001F08", 22 ] 23 if (is_standard_system) { 24 external_deps = [ 25 "c_utils:utils", 26 "drivers_interface_power:libpower_proxy_1.2", 27 "drivers_interface_ril:libril_stub_1.5", 28 "hdf_core:libhdf_ipc_adapter", 29 "hilog:libhilog", 30 "ipc:ipc_single", 31 "ril_adapter:hril", 32 "ril_adapter:hril_innerkits", 33 ] 34 } else { 35 external_deps = [ 36 "hilog:libhilog", 37 "ipc:ipc_single", 38 ] 39 } 40 41 install_images = [ chipset_base_dir ] 42 subsystem_name = "hdf" 43 part_name = "drivers_peripheral_ril" 44} 45 46############################################################################################## 47 48ohos_shared_library("libril_driver") { 49 include_dirs = [ "include" ] 50 sources = [ "src/ril_driver.cpp" ] 51 52 if (is_standard_system) { 53 external_deps = [ 54 "c_utils:utils", 55 "drivers_interface_ril:libril_stub_1.1", 56 "drivers_interface_ril:libril_stub_1.2", 57 "drivers_interface_ril:libril_stub_1.3", 58 "drivers_interface_ril:libril_stub_1.4", 59 "drivers_interface_ril:libril_stub_1.5", 60 "hdf_core:libhdf_host", 61 "hdf_core:libhdf_ipc_adapter", 62 "hdf_core:libhdf_utils", 63 "hdf_core:libhdi", 64 "hilog:libhilog", 65 "ipc:ipc_single", 66 "ril_adapter:hril_hdf", 67 "ril_adapter:hril_innerkits", 68 ] 69 } else { 70 external_deps = [ 71 "hilog:libhilog", 72 "ipc:ipc_single", 73 ] 74 } 75 76 shlib_type = "hdi" 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.5", 86 ] 87} 88