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  sources = [
25    "src/cast_service_listener_impl_stub.cpp",
26    "src/cast_session.cpp",
27    "src/cast_session_impl_proxy.cpp",
28    "src/cast_session_listener_impl_stub.cpp",
29    "src/cast_session_manager.cpp",
30    "src/cast_session_manager_adaptor.cpp",
31    "src/cast_session_manager_service_proxy.cpp",
32    "src/cast_engine_service_load_callback.cpp",
33    "src/stream_player_listener_impl_stub.cpp",
34    "src/mirror_player.cpp",
35    "src/mirror_player_impl_proxy.cpp",
36    "src/stream_player.cpp",
37    "src/stream_player_impl_proxy.cpp",
38  ]
39
40  configs = [
41    ":cast_client_config",
42    "${cast_engine_root}:cast_engine_default_config",
43  ]
44
45  public_configs = [ ":cast_client_config" ]
46
47  deps = [
48    "${cast_engine_common}:cast_engine_common_sources",
49  ]
50
51  external_deps = [
52    "c_utils:utils",
53    "hilog:libhilog",
54    "ipc:ipc_core",
55    "samgr:samgr_proxy",
56    "graphic_surface:surface",
57    "image_framework:image_native",
58  ]
59
60  subsystem_name = "castplus"
61  part_name = "cast_engine"
62}
63