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.2") { 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.1", 27 "drivers_interface_ril:ril_idl_headers_1.2", 28 "hdf_core:libhdf_ipc_adapter", 29 "hilog:libhilog", 30 "ipc:ipc_single", 31 "ril_adapter:hril", 32 ] 33 } else { 34 external_deps = [ 35 "hilog:libhilog", 36 "ipc:ipc_single", 37 ] 38 } 39 40 install_images = [ chipset_base_dir ] 41 subsystem_name = "hdf" 42 part_name = "drivers_peripheral_ril" 43} 44 45############################################################################################## 46 47ohos_shared_library("libril_driver") { 48 include_dirs = [ "include" ] 49 sources = [ "src/ril_driver.cpp" ] 50 51 if (is_standard_system) { 52 external_deps = [ 53 "c_utils:utils", 54 "drivers_interface_ril:libril_stub_1.1", 55 "drivers_interface_ril:libril_stub_1.2", 56 "hdf_core:libhdf_host", 57 "hdf_core:libhdf_ipc_adapter", 58 "hdf_core:libhdf_utils", 59 "hdf_core:libhdi", 60 "hilog:libhilog", 61 "ipc:ipc_single", 62 "ril_adapter:hril_hdf", 63 ] 64 } else { 65 external_deps = [ 66 "hilog:libhilog", 67 "ipc:ipc_single", 68 ] 69 } 70 71 shlib_type = "hdi" 72 install_images = [ chipset_base_dir ] 73 subsystem_name = "hdf" 74 part_name = "drivers_peripheral_ril" 75} 76 77group("hdf_ril") { 78 deps = [ 79 ":libril_driver", 80 ":libril_service_1.2", 81 ] 82} 83