• 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    "//utils/native/base/include",
26    "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard/include",
27    "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard/interfaces",
28    "//foundation/multimedia/image_framework/interfaces/innerkits/include",
29    "//foundation/CastEngine/castengine_wifi_display/services",
30    "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain",
31    "//foundation/CastEngine/castengine_wifi_display/services/interaction/device_kit",
32    "//foundation/CastEngine/castengine_wifi_display/services/interaction/ipc_codec",
33    "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain/rpc",
34    "//foundation/communication/wifi/wifi/frameworks/native/include",
35    "//foundation/communication/wifi/wifi/frameworks/native/interfaces",
36    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include/",
37    "//foundation/communication/ipc/ipc/native/c/ipc/include",
38    "//foundation/systemabilitymgr/safwk/services/safwk/include",
39    "//utils/native/base/include",
40    "//kaihong/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
41    "//base/security/access_token/interfaces/innerkits/accesstoken/include",
42    "//base/security/access_token/interfaces/innerkits/token_setproc/include",
43    "//base/security/access_token/interfaces/innerkits/nativetoken/include",
44  ]
45}
46
47ohos_executable("sharing_wfd_sink_demo") {
48  sanitize = {
49    cfi = true
50    cfi_cross_dso = true
51    debug = false
52  }
53
54  configs = [
55    ":sharing_interaction_demo_config",
56    # "$SHARING_ROOT_DIR/services/windowmgr:window_external_include",
57  ]
58
59  sources = [ "wfd_sink_demo.cpp" ]
60
61  deps = [
62    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd:sharingwfd_client",
63    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
64  ]
65
66  external_deps = [
67    "graphic_surface:surface",
68    "hilog:libhilog",
69    "ipc:ipc_core",
70  ]
71
72  relative_install_dir = "sharing_demo"
73
74  subsystem_name = "castplus"
75  part_name = "sharing_framework"
76}
77
78ohos_executable("sharing_wfd_source_demo") {
79  sanitize = {
80    cfi = true
81    cfi_cross_dso = true
82    debug = false
83  }
84
85  configs = [ ":sharing_interaction_demo_config" ]
86
87  sources = [ "wfd_source_demo.cpp" ]
88
89  deps = [
90    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd:sharingwfd_client",
91    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
92  ]
93
94  external_deps = [
95    "c_utils:utils",
96    "graphic_surface:surface",
97    "hilog:libhilog",
98    "ipc:ipc_core",
99  ]
100
101  relative_install_dir = "sharing_demo"
102
103  subsystem_name = "castplus"
104  part_name = "sharing_framework"
105}
106
107ohos_executable("sharing_domain_demo") {
108  sanitize = {
109    cfi = true
110    cfi_cross_dso = true
111    debug = false
112  }
113
114  configs = [ ":sharing_interaction_demo_config" ]
115
116  cflags = [ "-Wno-c++20-extensions" ]
117
118  sources = [ "domain_demo.cpp" ]
119
120  deps = [ "//foundation/CastEngine/castengine_wifi_display/services/interaction/domain/rpc:domain_rpc_manager" ]
121
122  external_deps = [
123    "access_token:libaccesstoken_sdk",
124    "access_token:libnativetoken",
125    "access_token:libtoken_setproc",
126    "c_utils:utils",
127    "device_manager:devicemanagersdk",
128    "graphic_surface:surface",
129    "hilog:libhilog",
130    "ipc:ipc_core",
131    "safwk:system_ability_fwk",
132    "samgr:samgr_proxy",
133  ]
134
135  relative_install_dir = "sharing_demo"
136  subsystem_name = "castplus"
137  part_name = "sharing_framework"
138}
139