• 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
17group("sharing_services_package") {
18  deps = [
19    ":sharing_service",
20    "codec:sharing_codec",
21    "common:kv_operator",
22    "common:sharing_common",
23    "network:sharing_network",
24    "protocol/rtp:sharing_rtp",
25    "utils:sharing_utils",
26  ]
27}
28
29ohos_shared_library("sharing_service") {
30  install_enable = true
31
32  sanitize = {
33    cfi = true
34    cfi_cross_dso = true
35    debug = false
36    boundary_sanitize = true
37    ubsan = true
38    integer_overflow = true
39  }
40
41  deps = [
42    "agent:sharing_agent_srcs",
43    "configuration:sharing_configure_srcs",
44    "context:sharing_context_srcs",
45    "event:sharing_event_srcs",
46    "interaction:sharing_interaction_srcs",
47    "mediachannel:sharing_media_channel_srcs",
48    "mediaplayer:sharing_media_player_srcs",
49    "scheduler:sharing_scheduler_srcs",
50  ]
51
52  deps += [
53    "codec:sharing_codec",
54    "common:sharing_common",
55    "network:sharing_network",
56    "protocol/rtp:sharing_rtp",
57    "protocol/rtsp:sharing_rtsp",
58    "utils:sharing_utils",
59  ]
60
61  if (sharing_framework_support_wfd) {
62    deps += [
63      "impl/scene/wfd:sharing_wfd_srcs",
64      "impl/screen_capture:sharing_screen_capture_srcs",
65      "impl/wfd:sharing_wfd_session_srcs",
66    ]
67  }
68
69  configs = [ "$SHARING_ROOT_DIR/tests:coverage_flags" ]
70
71  external_deps = [
72    "access_token:libaccesstoken_sdk",
73    "access_token:libnativetoken",
74    "access_token:libtoken_setproc",
75    "audio_framework:audio_capturer",
76    "audio_framework:audio_client",
77    "audio_framework:audio_renderer",
78    "cJSON:cjson_static",
79    "graphic_2d:librender_service_base",
80    "graphic_surface:surface",
81    "hilog:libhilog",
82    "samgr:samgr_proxy",
83  ]
84
85  subsystem_name = "castplus"
86  part_name = "sharing_framework"
87}
88