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