• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//foundation/CastEngine/castengine_wifi_display/config.gni")
16
17config("sharing_interaction_demo_config") {
18  include_dirs = [
19    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd/include",
20    "$SHARING_ROOT_DIR/services",
21    "$SHARING_ROOT_DIR/services/protocol",
22    "$SHARING_ROOT_DIR/services/protocol/rtp",
23    "$SHARING_ROOT_DIR/services/protocol/rtp/interfaces",
24    "$SHARING_ROOT_DIR/services/extend/magic_enum",
25    "//foundation/CastEngine/castengine_wifi_display/services",
26    "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain",
27    "//foundation/CastEngine/castengine_wifi_display/services/interaction/device_kit",
28    "//foundation/CastEngine/castengine_wifi_display/services/interaction/ipc_codec",
29    "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain/rpc",
30  ]
31}
32
33ohos_executable("sharing_wfd_sink_demo") {
34  sanitize = {
35    cfi = true
36    cfi_cross_dso = true
37    debug = false
38  }
39
40  configs = [
41    ":sharing_interaction_demo_config",
42    # "$SHARING_ROOT_DIR/services/windowmgr:window_external_include",
43  ]
44
45  sources = [ "wfd_sink_demo.cpp" ]
46
47  deps = [
48    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd:sharingwfd_client",
49    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
50  ]
51
52  external_deps = [
53    "graphic_surface:surface",
54    "hilog:libhilog",
55    "ipc:ipc_core",
56  ]
57
58  relative_install_dir = "sharing_demo"
59
60  subsystem_name = "castplus"
61  part_name = "sharing_framework"
62}
63
64ohos_executable("sharing_wfd_source_demo") {
65  sanitize = {
66    cfi = true
67    cfi_cross_dso = true
68    debug = false
69  }
70
71  configs = [ ":sharing_interaction_demo_config" ]
72
73  sources = [ "wfd_source_demo.cpp" ]
74
75  deps = [
76    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd:sharingwfd_client",
77    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
78  ]
79
80  external_deps = [
81    "c_utils:utils",
82    "graphic_surface:surface",
83    "hilog:libhilog",
84    "ipc:ipc_core",
85  ]
86
87  relative_install_dir = "sharing_demo"
88
89  subsystem_name = "castplus"
90  part_name = "sharing_framework"
91}
92
93ohos_executable("sharing_domain_demo") {
94  sanitize = {
95    cfi = true
96    cfi_cross_dso = true
97    debug = false
98  }
99
100  configs = [ ":sharing_interaction_demo_config" ]
101
102  cflags = [ "-Wno-c++20-extensions" ]
103
104  sources = [ "domain_demo.cpp" ]
105
106  deps = [ "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain/rpc:domain_rpc_manager" ]
107
108  external_deps = [
109    "access_token:libaccesstoken_sdk",
110    "access_token:libnativetoken",
111    "access_token:libtoken_setproc",
112    "c_utils:utils",
113    "device_manager:devicemanagersdk",
114    "graphic_surface:surface",
115    "hilog:libhilog",
116    "image_framework:image_native",
117    "ipc:ipc_core",
118    "safwk:system_ability_fwk",
119    "samgr:samgr_proxy",
120  ]
121
122  relative_install_dir = "sharing_demo"
123  subsystem_name = "castplus"
124  part_name = "sharing_framework"
125}
126