• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("../../../../../tools/build/suite.gni")
15
16dsoftbus_root_path = "../../../../../../../foundation/communication/dsoftbus"
17
18ohos_executable("socketdsoftbusTest") {
19  sanitize = {
20    cfi = true
21    cfi_cross_dso = true
22    debug = true
23  }
24
25  sources = [
26    "../../common/socket_common.c",
27    "./SocketTestServer.cpp",
28  ]
29
30  include_dirs = [
31    "../../common",
32    "$dsoftbus_root_path/core/common/include",
33    "$dsoftbus_root_path/adapter/common/include",
34    "$dsoftbus_root_path/interfaces/kits/common",
35    "$dsoftbus_root_path/interfaces/kits/bus_center",
36    "$dsoftbus_root_path/interfaces/kits/discovery",
37    "$dsoftbus_root_path/interfaces/kits/transport",
38  ]
39
40  external_deps = [
41    "access_token:libaccesstoken_sdk",
42    "access_token:libnativetoken",
43    "access_token:libtoken_setproc",
44    "c_utils:utils",
45    "dsoftbus:softbus_client",
46    "hilog:libhilog",
47    "ipc:ipc_core",
48    "wifi:wifi_sdk",
49  ]
50  subsystem_name = "xts"
51  part_name = "dcts"
52}
53
54ohos_copy("cpdsocketdsoftbusTest") {
55  sources = [ "$root_out_dir/xts/dcts/socketdsoftbusTest" ]
56  outputs =
57      [ "$root_out_dir/suites/${XTS_SUITENAME}/testcases/socketdsoftbusTest" ]
58
59  deps = [ ":socketdsoftbusTest" ]
60  subsystem_name = "xts"
61  part_name = "dcts"
62}
63
64group("SocketTestServer") {
65  testonly = true
66  if (is_standard_system) {
67    deps = [
68      ":cpdsocketdsoftbusTest",
69      ":socketdsoftbusTest",
70    ]
71  }
72}
73