• 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/foundation/communication/dsoftbus/interfaces/kits/common",
39  ]
40
41  sources = [
42    "decoder_demo.cpp",
43    "dsreen_automat_test.cpp",
44    "test.cpp",
45  ]
46
47  defines = [
48    "HI_LOG_ENABLE",
49    "DH_LOG_TAG=\"DctsSubdisScreenTest\"",
50    "LOG_DOMAIN=0xD004100",
51  ]
52
53  deps = [
54    "$base_root/foundation/communication/dsoftbus/sdk:softbus_client",
55    "$base_root/foundation/distributedhardware/distributed_screen/common:distributed_screen_utils",
56    "$base_root/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk",
57    "$base_root/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source:distributed_screen_source_sdk",
58    "$base_root/foundation/distributedhardware/distributed_screen/services/screenclient:distributed_screen_client",
59    "$base_root/foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
60    "$base_root/foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
61    "$base_root/foundation/window/window_manager/dm:libdm",
62    "$base_root/foundation/window/window_manager/wm:libwm",
63  ]
64
65  external_deps = [
66    "access_token:libaccesstoken_sdk",
67    "access_token:libnativetoken",
68    "access_token:libtoken_setproc",
69    "av_codec:av_codec_client",
70    "c_utils:utils",
71    "distributed_hardware_fwk:distributedhardwareutils",
72    "dsoftbus:softbus_client",
73    "graphic_2d:librender_service_client",
74    "graphic_surface:surface",
75    "hilog:libhilog",
76    "media_foundation:media_foundation",
77    "samgr:samgr_proxy",
78    "window_manager:libdm",
79    "window_manager:libwm",
80  ]
81
82  subsystem_name = "distributedhardware"
83  part_name = "distributed_screen"
84}
85