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