• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022-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
14base_root = "../../../../../"
15import("//test/xts/tools/build/suite.gni")
16
17module_output_path = "dcts/distributedhardware"
18
19ohos_moduletest_suite("DctsSubdisScreenTest") {
20  sanitize = {
21    cfi = true
22    cfi_cross_dso = true
23    debug = false
24  }
25  module_out_path = module_output_path
26  include_dirs = [
27    "$base_root/foundation/distributedhardware/distributed_screen/services/common/utils/include",
28    "$base_root/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_sink/include",
29    "$base_root/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source/include",
30    "$base_root/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source/include/callback",
31    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/utils/include",
32    "$base_root/foundation/window/window_manager/interfaces/innerkits/dm",
33    "$base_root/foundation/distributedhardware/distributed_screen/services/screenclient/include",
34    "$base_root/foundation/window/window_manager/interfaces/innerkits/wm",
35    "$base_root/foundation/distributedhardware/distributed_screen/common/include",
36    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/log/include",
37    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/utils/include/log",
38    "$base_root/base/security/access_token/interfaces/innerkits/accesstoke/include",
39    "$base_root/base/security/access_token/interfaces/innerkits/nativetoken/include",
40    "$base_root/base/security/access_token/interfaces/innerkits/token_setproc/include",
41    "$base_root/foundation/communication/dsoftbus/interfaces/kits/common",
42  ]
43
44  sources = [
45    "decoder_demo.cpp",
46    "dsreen_automat_test.cpp",
47    "test.cpp",
48  ]
49
50  defines = [
51    "HI_LOG_ENABLE",
52    "DH_LOG_TAG=\"DctsSubdisScreenTest\"",
53    "LOG_DOMAIN=0xD004100",
54  ]
55
56  deps = [
57    "$base_root/base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
58    "$base_root/base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
59    "$base_root/foundation/communication/dsoftbus/sdk:softbus_client",
60    "$base_root/foundation/distributedhardware/distributed_screen/common:distributed_screen_utils",
61    "$base_root/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk",
62    "$base_root/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source:distributed_screen_source_sdk",
63    "$base_root/foundation/distributedhardware/distributed_screen/services/screenclient:distributed_screen_client",
64    "$base_root/foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
65    "$base_root/foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
66    "$base_root/foundation/window/window_manager/dm:libdm",
67    "$base_root/foundation/window/window_manager/wm:libwm",
68  ]
69
70  external_deps = [
71    "access_token:libaccesstoken_sdk",
72    "access_token:libnativetoken",
73    "access_token:libtoken_setproc",
74    "av_codec:av_codec_client",
75    "c_utils:utils",
76    "distributed_hardware_fwk:distributedhardwareutils",
77    "dsoftbus:softbus_client",
78    "graphic_2d:librender_service_client",
79    "graphic_surface:surface",
80    "hilog:libhilog",
81    "media_foundation:media_foundation",
82    "samgr:samgr_proxy",
83    "window_manager:libdm",
84    "window_manager:libwm",
85  ]
86
87  subsystem_name = "distributedhardware"
88  part_name = "distributed_screen"
89}
90