• 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_client_config") {
17  include_dirs = [
18    "include",
19    "${cast_engine_interfaces}/inner_api/include",
20  ]
21}
22
23ohos_static_library("cast_client_inner") {
24  sanitize = {
25    cfi = true
26    cfi_cross_dso = true
27    debug = false
28  }
29  sources = [
30    "src/cast_engine_service_load_callback.cpp",
31    "src/cast_service_listener_impl_stub.cpp",
32    "src/cast_session.cpp",
33    "src/cast_session_impl_proxy.cpp",
34    "src/cast_session_listener_impl_stub.cpp",
35    "src/cast_session_manager.cpp",
36    "src/cast_session_manager_adaptor.cpp",
37    "src/cast_session_manager_service_proxy.cpp",
38    "src/mirror_player.cpp",
39    "src/mirror_player_impl_proxy.cpp",
40    "src/stream_player.cpp",
41    "src/stream_player_impl_proxy.cpp",
42    "src/stream_player_listener_impl_stub.cpp",
43  ]
44
45  configs = [
46    ":cast_client_config",
47    "${cast_engine_root}:cast_engine_default_config",
48  ]
49
50  public_configs = [ ":cast_client_config" ]
51
52  deps = [ "${cast_engine_common}:cast_engine_common_sources" ]
53
54  external_deps = [
55    "c_utils:utils",
56    "graphic_surface:surface",
57    "hilog:libhilog",
58    "image_framework:image_native",
59    "init:libbegetutil",
60    "ipc:ipc_core",
61    "samgr:samgr_proxy",
62  ]
63
64  subsystem_name = "castplus"
65  part_name = "cast_engine"
66}
67