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("//build/ohos.gni")
15RIL_ADAPTER = "../.."
16RIL_VENDOR = "$RIL_ADAPTER/services/vendor/src"
17
18ohos_shared_library("ril_vendor") {
19  sources = [
20    "$RIL_VENDOR/at_call.c",
21    "$RIL_VENDOR/at_data.c",
22    "$RIL_VENDOR/at_modem.c",
23    "$RIL_VENDOR/at_network.c",
24    "$RIL_VENDOR/at_sim.c",
25    "$RIL_VENDOR/at_sms.c",
26    "$RIL_VENDOR/at_support.c",
27    "$RIL_VENDOR/vendor_adapter.c",
28    "$RIL_VENDOR/vendor_channel.c",
29    "$RIL_VENDOR/vendor_report.c",
30    "$RIL_VENDOR/vendor_util.c",
31  ]
32  include_dirs = [ "$RIL_ADAPTER/services/vendor/include" ]
33  configs = [ "$RIL_ADAPTER/utils:utils_config" ]
34  defines = [
35    "LOG_TAG = \"RilVendor\"",
36    "LOG_DOMAIN = 0xD001F08",
37  ]
38  deps = [ "$RIL_ADAPTER/interfaces/innerkits:hril_innerkits" ]
39
40  external_deps = [
41    "bounds_checking_function:libsec_shared",
42    "c_utils:utils",
43    "hilog:libhilog",
44    "init:libbegetutil",
45  ]
46
47  install_images = [ chipset_base_dir ]
48  part_name = "ril_adapter"
49  subsystem_name = "telephony"
50}
51