• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023-2023 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("//foundation/CastEngine/castengine_cast_framework/cast_engine.gni")
15
16config("cast_session_config") {
17  include_dirs = [
18    "include",
19  ]
20}
21
22ohos_static_library("cast_session") {
23  sanitize = {
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28  sources = [
29    "src/cast_session_impl.cpp",
30    "src/cast_session_impl_stub.cpp",
31    "src/cast_session_listener_impl_proxy.cpp",
32    "src/cast_session_listeners.cpp",
33    "src/cast_session_state.cpp",
34  ]
35
36  configs = [
37    ":cast_session_config",
38    "${cast_engine_root}:cast_engine_default_config",
39  ]
40
41  public_configs = [
42    ":cast_session_config",
43    "src/channel:cast_session_channel_config",
44    "src/utils:cast_session_utils_config",
45    "src/rtsp:cast_session_rtsp_config",
46    "src/mirror:cast_session_mirror_config",
47    "src/stream:cast_session_stream_config",
48  ]
49
50  deps = [
51    "${cast_engine_common}:cast_engine_common_sources",
52    "${cast_engine_service}/src/device_manager:cast_discovery",
53    "${cast_engine_service}/src/session/src/utils:cast_session_utils",
54    "src/channel:cast_session_channel",
55    "src/mirror:cast_session_mirror",
56    "src/rtsp:cast_session_rtsp",
57    "src/stream:cast_session_stream",
58    "src/utils:cast_session_utils",
59  ]
60
61  external_deps = [
62    "ability_runtime:app_manager",
63    "audio_framework:audio_client",
64    "bundle_framework:appexecfwk_core",
65    "c_utils:utils",
66    "core_service:tel_core_service_api",
67    "device_manager:devicemanagersdk",
68    "dsoftbus:softbus_client",
69    "graphic_surface:surface",
70    "hilog:libhilog",
71    "hisysevent:libhisysevent",
72    "image_framework:image_native",
73    "init:libbegetutil",
74    "input:libmmi-client",
75    "ipc:ipc_core",
76    "jsoncpp:jsoncpp",
77    "jsoncpp:jsoncpp_static",
78    "openssl:libcrypto_shared",
79    "player_framework:media_client",
80    "power_manager:powermgr_client",
81    "wifi:wifi_sdk",
82  ]
83
84  subsystem_name = "castplus"
85  part_name = "cast_engine"
86}
87