• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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.gni")
15import("//build/test.gni")
16import("//foundation/CastEngine/castengine_wifi_display/config.gni")
17
18module_out_path = "sharing/interaction"
19
20ohos_unittest("interaction_interprocess_unit_test") {
21  module_out_path = module_out_path
22
23  sanitize = {
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28
29  include_dirs = [
30    "$SHARING_ROOT_DIR/services",
31    "$SHARING_ROOT_DIR/services/interaction",
32    "$SHARING_ROOT_DIR/frameworks/innerkitsimpl",
33    "$SHARING_ROOT_DIR/services/utils/native/base/include",
34    "$SHARING_ROOT_DIR/services/interaction/ipc_codec",
35    "$SHARING_ROOT_DIR/services/interaction/device_kit",
36    "$SHARING_ROOT_DIR/services/interaction/domain",
37    "$SHARING_ROOT_DIR/services/interaction/domain/rpc",
38    "$SHARING_ROOT_DIR/services/interaction/interprocess",
39    "$SHARING_ROOT_DIR/services/interaction/scene",
40  ]
41
42  sources = [
43    "$SHARING_ROOT_DIR/services/interaction/interprocess/client_factory.cpp",
44    "$SHARING_ROOT_DIR/services/interaction/interprocess/inter_ipc_client.cpp",
45    "$SHARING_ROOT_DIR/services/interaction/interprocess/inter_ipc_client_stub.cpp",
46    "$SHARING_ROOT_DIR/services/interaction/interprocess/inter_ipc_proxy.cpp",
47    "$SHARING_ROOT_DIR/services/interaction/interprocess/inter_ipc_stub.cpp",
48    "$SHARING_ROOT_DIR/services/interaction/interprocess/ipc_msg_adapter.cpp",
49    "interprocess_unit_test.cpp",
50  ]
51
52  cflags = [
53    "-Wall",
54    "-fno-rtti",
55    "-fno-exceptions",
56    "-fno-common",
57    "-fstack-protector-strong",
58    "-Wshadow",
59    "-FPIC",
60    "-FS",
61    "-O2",
62    "-D_FORTIFY_SOURCE=2",
63    "-fvisibility=hidden",
64    "-Wformat=2",
65    "-Wdate-time",
66    "-Wmissing-field-initializers",
67    "-Werror",
68    "-Wextra",
69    "-Wimplicit-fallthrough",
70    "-Wsign-compare",
71    "-Wno-unused-parameter",
72    "-Wno-deprecated-declarations",
73    "-Dprivate=public",
74    "-Dprotected=public",
75    "-Wno-c++20-extensions",
76  ]
77
78  deps = [
79    "$SHARING_ROOT_DIR/services:sharing_service",
80    "//third_party/googletest:gtest_main",
81  ]
82
83  external_deps = [
84    "ability_base:base",
85    "ability_base:want",
86    "ability_runtime:ability_manager",
87    "access_token:libaccesstoken_sdk",
88    "access_token:libnativetoken",
89    "access_token:libtoken_setproc",
90    "c_utils:utils",
91    "c_utils:utilsbase",
92    "device_manager:devicemanagersdk",
93    "graphic_surface:surface",
94    "hilog:libhilog",
95    "ipc:ipc_core",
96    "kv_store:distributeddata_inner",
97    "safwk:system_ability_fwk",
98    "samgr:samgr_proxy",
99    "wifi:wifi_sdk",
100  ]
101}
102