• 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.
13SUBSYSTEM_DIR = "../../../.."
14import("//build/ohos.gni")
15
16TELEPHONY_CORE_SERVICE_ROOT = "$SUBSYSTEM_DIR/core_service"
17TELEPHONY_SIM_ROOT = "$SUBSYSTEM_DIR/core_service/services/sim"
18TELEPHONY_FRAMEWORKS_ROOT = "$SUBSYSTEM_DIR/core_service/frameworks/native/"
19
20ohos_executable("tel_sim_test") {
21  sanitize = {
22    cfi = true
23    cfi_cross_dso = true
24    debug = false
25  }
26  branch_protector_ret = "pac_ret"
27  install_enable = true
28  sources = [
29    "$TELEPHONY_FRAMEWORKS_ROOT/src/network_information.cpp",
30    "$TELEPHONY_FRAMEWORKS_ROOT/src/network_search_result.cpp",
31    "$TELEPHONY_FRAMEWORKS_ROOT/src/network_state.cpp",
32    "$TELEPHONY_FRAMEWORKS_ROOT/src/signal_information.cpp",
33    "$TELEPHONY_SIM_ROOT/test/test.cpp",
34  ]
35
36  include_dirs = [
37    "$TELEPHONY_CORE_SERVICE_ROOT/base/include",
38    "$TELEPHONY_CORE_SERVICE_ROOT/services/tel_ril/include",
39    "$TELEPHONY_SIM_ROOT/include",
40  ]
41
42  defines = [
43    "TELEPHONY_LOG_TAG = \"CoreServiceSimTest\"",
44    "LOG_DOMAIN = 0xD000F00",
45  ]
46
47  configs = [ "$SUBSYSTEM_DIR/core_service/utils:telephony_log_config" ]
48
49  deps = [
50    "$SUBSYSTEM_DIR/core_service:tel_core_service",
51    "$SUBSYSTEM_DIR/core_service/interfaces/innerkits:tel_core_service_api",
52    "$SUBSYSTEM_DIR/core_service/utils:libtel_common",
53  ]
54
55  external_deps = [
56    "ability_base:want",
57    "ability_runtime:abilitykit_native",
58    "access_token:libaccesstoken_sdk",
59    "access_token:libnativetoken_shared",
60    "access_token:libtoken_setproc",
61    "bundle_framework:appexecfwk_core",
62    "cJSON:cjson",
63    "c_utils:utils",
64    "common_event_service:cesfwk_innerkits",
65    "config_policy:configpolicy_util",
66    "data_share:datashare_common",
67    "data_share:datashare_consumer",
68    "eventhandler:libeventhandler",
69    "hilog:libhilog",
70    "init:libbegetutil",
71    "ipc:ipc_single",
72    "safwk:system_ability_fwk",
73    "samgr:samgr_proxy",
74  ]
75
76  part_name = "core_service"
77  subsystem_name = "telephony"
78}
79