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_discovery_config") {
17  include_dirs = [ "include" ]
18}
19
20ohos_static_library("cast_discovery") {
21  sources = [
22    "src/cast_device_data_manager.cpp",
23    "src/connection_manager.cpp",
24    "src/discovery_manager.cpp",
25  ]
26
27  configs = [
28    ":cast_discovery_config",
29    "${cast_engine_root}:cast_engine_default_config",
30  ]
31
32  include_dirs = [
33    "${cast_engine_interfaces}/inner_api/include",
34    "${cast_engine_service}/src/session/src/utils/include",
35    "//third_party/json/single_include/nlohmann",
36  ]
37
38  public_configs = [ ":cast_discovery_config" ]
39
40  deps = [
41   "${cast_engine_common}:cast_engine_common_sources",
42   "${cast_engine_service}/src/session/src/utils:cast_session_utils",
43   "//third_party/openssl:libcrypto_shared",
44  ]
45
46  external_deps = [
47    "c_utils:utils",
48    "device_manager:devicemanagersdk",
49    "dsoftbus:softbus_client",
50    "hilog:libhilog",
51    "hisysevent:libhisysevent",
52    "init:libbegetutil",
53    "eventhandler:libeventhandler",
54  ]
55
56  subsystem_name = "castplus"
57  part_name = "cast_engine"
58}
59