• 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_service_config") {
18  include_dirs = [
19    "$SHARING_ROOT_DIR/services",
20    "$SHARING_ROOT_DIR/frameworks/innerkitsimpl/native/wfd",
21    "$SHARING_ROOT_DIR/services/interaction/ipc_codec",
22    "$SHARING_ROOT_DIR/services/interaction/device_kit",
23    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
24    "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd/include",
25    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include/",
26    "//foundation/communication/ipc/ipc/native/c/ipc/include",
27    "$SHARING_ROOT_DIR/services/extend/magic_enum",
28    "//utils/native/base/include",
29  ]
30
31  cflags = [ "-Wno-c++20-extensions" ]
32}
33
34ohos_shared_library("sharingwfd_client") {
35  install_enable = true
36
37  sanitize = {
38    cfi = true
39    cfi_cross_dso = true
40    debug = false
41  }
42
43  include_dirs = [ "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include" ]
44
45  sources = [
46    "$SHARING_ROOT_DIR/frameworks/innerkitsimpl/native/wfd/wfd_sink_impl.cpp",
47    "$SHARING_ROOT_DIR/frameworks/innerkitsimpl/native/wfd/wfd_source_impl.cpp",
48    "$SHARING_ROOT_DIR/frameworks/innerkitsimpl/native/wfd/wifi_display.cpp",
49    "$SHARING_ROOT_DIR/services/interaction/interprocess/client_factory.cpp",
50    "$SHARING_ROOT_DIR/services/interaction/interprocess/inter_ipc_client.cpp",
51    "$SHARING_ROOT_DIR/services/interaction/interprocess/inter_ipc_client_stub.cpp",
52    "$SHARING_ROOT_DIR/services/interaction/interprocess/inter_ipc_proxy.cpp",
53    "$SHARING_ROOT_DIR/services/interaction/interprocess/inter_ipc_stub.cpp",
54    "$SHARING_ROOT_DIR/services/interaction/interprocess/ipc_msg_adapter.cpp",
55    "$SHARING_ROOT_DIR/services/interaction/scene/scene_format.cpp",
56  ]
57
58  public_configs = [
59    ":sharing_service_config",
60    "$SHARING_ROOT_DIR/tests:coverage_flags",
61  ]
62
63  deps = [
64    "$SHARING_ROOT_DIR/services/common:sharing_common",
65    "$SHARING_ROOT_DIR/services/interaction/ipc_codec:ipc_codec_srcs",
66    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
67  ]
68
69  external_deps = [
70    "c_utils:utils",
71    "graphic_surface:surface",
72    "hilog:libhilog",
73    "ipc:ipc_core",
74    "safwk:system_ability_fwk",
75    "samgr:samgr_proxy",
76  ]
77
78  subsystem_name = "castplus"
79  part_name = "sharing_framework"
80}
81