1# Copyright (c) 2024 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_var.gni")
15import("//drivers/peripheral/display/display_config.gni")
16import("../../../../../../drivers/hdf_core/adapter/uhdf2/uhdf.gni")
17import("../../../../tools/build/suite.gni")
18
19module_output_path = "hdf/ril"
20ohos_moduletest_suite("HatsHdfV1RilServiceAdditionalTest") {
21  module_out_path = module_output_path
22  subsystem_name = "xts"
23  part_name = "hats"
24
25  sources = [
26    "hdf_ril_callback_common.cpp",
27    "hdf_ril_hdiService_test_1st.cpp",
28    "hdf_ril_hdiService_test_2nd.cpp",
29    "hdf_ril_hdiService_test_3rd.cpp",
30    "hdf_ril_hdiService_test_4th.cpp",
31    "hdf_ril_hdiService_test_5th.cpp",
32    "hdf_ril_hdiService_test_6th.cpp",
33    "hdf_ril_hdiService_test_7th.cpp",
34  ]
35  defines = [
36    "LOG_TAG = \"HdfRilHdiTest\"",
37    "LOG_DOMAIN = 0xD000F00",
38  ]
39
40  defines += display_defines
41
42  #   defines += [ "TEL_TEST_PIN_PUK" ]
43  cflags = [
44    "-Wall",
45    "-Wextra",
46    "-Werror",
47    "-fsigned-char",
48    "-fno-common",
49    "-fno-strict-aliasing",
50  ]
51
52  if (is_standard_system) {
53    external_deps = [
54      "c_utils:utils",
55      "drivers_interface_ril:libril_proxy_1.1",
56      "drivers_interface_ril:libril_proxy_1.2",
57      "drivers_interface_ril:libril_proxy_1.3",
58      "hdf_core:libhdf_utils",
59      "hilog:libhilog",
60      "ipc:ipc_single",
61    ]
62  } else {
63    external_deps = [ "hilog:libhilog" ]
64  }
65  external_deps += [ "ipc:ipc_single" ]
66}
67