• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//base/telephony/core_service/telephony.gni")
15import("//build/ohos.gni")
16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
17
18TELEPHONY_CORE_SERVICE_ROOT = "//base/telephony/core_service"
19TELEPHONY_SIM_ROOT = "//base/telephony/core_service/services/sim"
20
21ohos_executable("tel_ril_test") {
22  install_enable = true
23  sources = [ "tel_ril_test.cpp" ]
24
25  include_dirs = [
26    "$TELEPHONY_CORE_SERVICE_ROOT/services/include",
27    "$TELEPHONY_CORE_SERVICE_ROOT/services/tel_ril/include",
28    "$TELEPHONY_CORE_SERVICE_ROOT/interfaces/innerkits/include",
29    "$TELEPHONY_CORE_SERVICE_ROOT/frameworks/native/include",
30    "$TELEPHONY_SIM_ROOT/include",
31  ]
32
33  defines += [
34    "TELEPHONY_LOG_TAG = \"CoreServiceRilTest\"",
35    "LOG_DOMAIN = 0xD000F00",
36  ]
37
38  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
39
40  deps = [
41    "$hdf_uhdf_path/hdi:libhdi",
42    "//base/telephony/core_service:tel_core_service",
43  ]
44
45  external_deps = [
46    "c_utils:utils",
47    "common_event_service:cesfwk_innerkits",
48    "drivers_interface_ril:hril_innerkits",
49    "drivers_interface_ril:ril_idl_headers",
50    "eventhandler:libeventhandler",
51    "init:libbegetutil",
52    "ipc:ipc_core",
53    "power_manager:powermgr_client",
54    "samgr:samgr_proxy",
55  ]
56
57  if (is_standard_system) {
58    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
59  } else {
60    external_deps += [ "hilog:libhilog" ]
61  }
62
63  part_name = "core_service"
64  subsystem_name = "telephony"
65}
66