• 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_scene_unit_test") {
21  module_out_path = module_out_path
22
23  include_dirs = [
24    "$SHARING_ROOT_DIR/services",
25    "$SHARING_ROOT_DIR/services/interaction",
26    "$SHARING_ROOT_DIR/frameworks/innerkitsimpl",
27    "$SHARING_ROOT_DIR/services/utils/native/base/include",
28    "$SHARING_ROOT_DIR/services/interaction/ipc_codec",
29    "$SHARING_ROOT_DIR/services/interaction/device_kit",
30    "$SHARING_ROOT_DIR/services/interaction/domain",
31    "$SHARING_ROOT_DIR/services/interaction/domain/rpc",
32    "$SHARING_ROOT_DIR/services/interaction/interprocess",
33    "$SHARING_ROOT_DIR/services/interaction/scene",
34  ]
35
36  sources = [ "scene_unit_test.cpp" ]
37
38  cflags = [
39    "-Wall",
40    "-fno-rtti",
41    "-fno-exceptions",
42    "-fno-common",
43    "-fstack-protector-strong",
44    "-Wshadow",
45    "-FPIC",
46    "-FS",
47    "-O2",
48    "-D_FORTIFY_SOURCE=2",
49    "-fvisibility=hidden",
50    "-Wformat=2",
51    "-Wdate-time",
52    "-Werror",
53    "-Wextra",
54    "-Wmissing-field-initializers",
55    "-Wimplicit-fallthrough",
56    "-Wsign-compare",
57    "-Wno-unused-parameter",
58    "-Wno-deprecated-declarations",
59    "-Dprivate=public",
60    "-Dprotected=public",
61    "-Wno-c++20-extensions",
62  ]
63
64  cflags_cc = cflags
65  cflags_cc += [ "-std=c++17" ]
66
67  deps = [
68    "$SHARING_ROOT_DIR/services:sharing_service",
69    "//third_party/googletest:gtest_main",
70  ]
71
72  external_deps = [
73    "ability_base:base",
74    "ability_base:want",
75    "ability_runtime:ability_manager",
76    "access_token:libaccesstoken_sdk",
77    "access_token:libnativetoken",
78    "access_token:libtoken_setproc",
79    "c_utils:utils",
80    "c_utils:utilsbase",
81    "device_manager:devicemanagersdk",
82    "graphic_surface:surface",
83    "hilog:libhilog",
84    "ipc:ipc_core",
85    "kv_store:distributeddata_inner",
86    "safwk:system_ability_fwk",
87    "samgr:samgr_proxy",
88    "wifi:wifi_sdk",
89  ]
90}
91