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")
15
16RIL_ADAPTER = "../.."
17HRIL_HDF_ROOT = "$RIL_ADAPTER/services/hril_hdf"
18
19config("ril_hril_hdf_config") {
20  include_dirs = [ "$RIL_ADAPTER/services/hril_hdf/include" ]
21}
22
23ohos_shared_library("hril_hdf") {
24  sources = [ "$HRIL_HDF_ROOT/src/hril_hdf.c" ]
25
26  version_script = "$HRIL_HDF_ROOT/libhril_hdf.versionscript"
27
28  public_configs = [ ":ril_hril_hdf_config" ]
29
30  configs = [ "$RIL_ADAPTER/utils:utils_config" ]
31
32  deps = [
33    "$RIL_ADAPTER/interfaces/innerkits:hril_innerkits",
34    "$RIL_ADAPTER/services/hril:hril",
35  ]
36
37  external_deps = [
38    "hdf_core:libhdf_host",
39    "hdf_core:libhdf_utils",
40    "hilog:libhilog",
41    "init:libbegetutil",
42  ]
43
44  defines = [
45    "LOG_TAG = \"HrilHdf\"",
46    "LOG_DOMAIN = 0xD001F08",
47  ]
48
49  install_images = [ chipset_base_dir ]
50  part_name = "ril_adapter"
51  subsystem_name = "telephony"
52}
53