• 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
14import("//build/ohos.gni")
15import(
16    "//foundation/distributedhardware/distributed_screen/distributedscreen.gni")
17
18ohos_executable("distributedScreenTest") {
19  sanitize = {
20    cfi = true
21    cfi_cross_dso = true
22    debug = false
23  }
24  branch_protector_ret = "pac_ret"
25  install_enable = false
26
27  include_dirs = [
28    "${services_path}/common/utils/include",
29    "${interfaces_path}/innerkits/native_cpp/screen_sink/include",
30    "${interfaces_path}/innerkits/native_cpp/screen_source/include",
31    "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback",
32    "${services_path}/screenclient/include",
33    "${common_path}/include",
34  ]
35
36  sources = [
37    "decoder_demo.cpp",
38    "test.cpp",
39  ]
40
41  deps = [
42    "${common_path}:distributed_screen_utils",
43    "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk",
44    "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk",
45    "${services_path}/screenclient:distributed_screen_client",
46  ]
47
48  defines = [
49    "HI_LOG_ENABLE",
50    "DH_LOG_TAG=\"distributedScreenTest\"",
51    "LOG_DOMAIN=0xD004140",
52  ]
53
54  external_deps = [
55    "access_token:libaccesstoken_sdk",
56    "access_token:libnativetoken_shared",
57    "access_token:libtokensetproc_shared",
58    "av_codec:av_codec_client",
59    "c_utils:utils",
60    "distributed_hardware_fwk:distributedhardwareutils",
61    "dsoftbus:softbus_client",
62    "graphic_2d:librender_service_base",
63    "graphic_2d:librender_service_client",
64    "graphic_surface:surface",
65    "hilog:libhilog",
66    "media_foundation:media_foundation",
67    "samgr:samgr_proxy",
68    "window_manager:libdm",
69    "window_manager:libwm",
70  ]
71
72  cflags = [ "-Wall" ]
73  cflags_cc = cflags
74
75  part_name = "distributed_screen"
76  subsystem_name = "distributedhardware"
77}
78