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.3") {
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:ril_idl_headers_1.3",
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      "hdf_core:libhdf_host",
59      "hdf_core:libhdf_ipc_adapter",
60      "hdf_core:libhdf_utils",
61      "hdf_core:libhdi",
62      "hilog:libhilog",
63      "ipc:ipc_single",
64      "ril_adapter:hril_hdf",
65      "ril_adapter:hril_innerkits",
66    ]
67  } else {
68    external_deps = [
69      "hilog:libhilog",
70      "ipc:ipc_single",
71    ]
72  }
73
74  shlib_type = "hdi"
75  install_images = [ chipset_base_dir ]
76  subsystem_name = "hdf"
77  part_name = "drivers_peripheral_ril"
78}
79
80group("hdf_ril") {
81  deps = [
82    ":libril_driver",
83    ":libril_service_1.3",
84  ]
85}
86