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 ] 36 37 public_configs = [ ":cast_discovery_config" ] 38 39 deps = [ 40 "${cast_engine_common}:cast_engine_common_sources", 41 "${cast_engine_service}/src/session/src/utils:cast_session_utils", 42 ] 43 44 external_deps = [ 45 "ability_base:want", 46 "ability_runtime:extension_manager", 47 "c_utils:utils", 48 "common_event_service:cesfwk_innerkits", 49 "device_manager:devicemanagersdk", 50 "dsoftbus:softbus_client", 51 "eventhandler:libeventhandler", 52 "graphic_surface:surface", 53 "hilog:libhilog", 54 "hisysevent:libhisysevent", 55 "init:libbegetutil", 56 "json:nlohmann_json_static", 57 "openssl:libcrypto_shared", 58 "power_manager:powermgr_client", 59 "screenlock_mgr:screenlock_client", 60 "sharing_framework:sharingwfd_client", 61 "wifi:wifi_sdk", 62 ] 63 64 subsystem_name = "castplus" 65 part_name = "cast_engine" 66} 67