• 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/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 = \"TelRilTest\"",
35    "LOG_DOMAIN = 0xD002B01",
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    "//utils/native/base:utils",
44  ]
45
46  external_deps = [
47    "ces_standard:cesfwk_innerkits",
48    "eventhandler:libeventhandler",
49    "ipc:ipc_core",
50    "ril_adapter:hril_innerkits",
51    "samgr_standard:samgr_proxy",
52    "startup_l2:syspara",
53  ]
54
55  if (is_standard_system) {
56    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
57  } else {
58    external_deps += [ "hilog:libhilog" ]
59  }
60
61  part_name = "core_service"
62  subsystem_name = "telephony"
63}
64