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
14TELEPHONY_CORE_SERVICE_ROOT = "../../.."
15import("//build/ohos.gni")
16TELEPHONY_SIM_ROOT = "$TELEPHONY_CORE_SERVICE_ROOT/services/sim"
17
18ohos_executable("tel_ril_test") {
19  sanitize = {
20    cfi = true
21    cfi_cross_dso = true
22    debug = false
23  }
24  branch_protector_ret = "pac_ret"
25  install_enable = true
26  sources = [ "tel_ril_test.cpp" ]
27
28  include_dirs = [
29    "$TELEPHONY_CORE_SERVICE_ROOT/services/include",
30    "$TELEPHONY_CORE_SERVICE_ROOT/services/tel_ril/include",
31    "$TELEPHONY_CORE_SERVICE_ROOT/interfaces/innerkits/include",
32    "$TELEPHONY_CORE_SERVICE_ROOT/frameworks/native/include",
33    "$TELEPHONY_SIM_ROOT/include",
34  ]
35
36  defines = [
37    "TELEPHONY_LOG_TAG = \"CoreServiceRilTest\"",
38    "LOG_DOMAIN = 0xD000F00",
39  ]
40
41  configs = [ "$TELEPHONY_CORE_SERVICE_ROOT/utils:telephony_log_config" ]
42
43  deps = [
44    "$TELEPHONY_CORE_SERVICE_ROOT:tel_core_service",
45    "$TELEPHONY_CORE_SERVICE_ROOT/utils:libtel_common",
46  ]
47
48  external_deps = [
49    "c_utils:utils",
50    "common_event_service:cesfwk_innerkits",
51    "drivers_interface_ril:ril_idl_headers",
52    "eventhandler:libeventhandler",
53    "hdf_core:libhdi",
54    "hilog:libhilog",
55    "init:libbegetutil",
56    "ipc:ipc_single",
57    "power_manager:powermgr_client",
58    "samgr:samgr_proxy",
59  ]
60
61  part_name = "core_service"
62  subsystem_name = "telephony"
63}
64