1# Copyright (c) 2021-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("//build/ohos.gni") 15import("//build/ohos_var.gni") 16import( 17 "//foundation/distributedhardware/distributed_hardware_fwk/distributedhardwarefwk.gni") 18 19ohos_shared_library("distributedhardwarefwksvr") { 20 include_dirs = [ 21 "include", 22 "include/accessmanager", 23 "${av_center_svc_path}/include", 24 "${av_center_svc_path}/include/ipc", 25 "${av_trans_path}/common/include", 26 "${av_trans_path}/interface", 27 "${innerkits_path}/include", 28 "${common_path}/log/include", 29 "${common_path}/utils/include", 30 "${utils_path}/include/log", 31 "${utils_path}/include", 32 "//third_party/json/include", 33 "include/componentloader", 34 "include/versionmanager", 35 "include/componentmanager", 36 "include/task", 37 "include/utils", 38 "include/localhardwaremanager", 39 "include/publisher", 40 "include/resourcemanager", 41 "include/hidumphelper", 42 "include/ipc", 43 "${utils_path}/include/eventbus", 44 "include/lowlatency", 45 ] 46 47 sources = [ 48 "${av_center_svc_path}/src/av_sync_manager.cpp", 49 "${av_center_svc_path}/src/av_trans_control_center.cpp", 50 "${av_center_svc_path}/src/ipc/av_trans_control_center_callback_proxy.cpp", 51 "${av_trans_path}/common/src/av_sync_utils.cpp", 52 "${av_trans_path}/common/src/av_trans_log.cpp", 53 "${av_trans_path}/common/src/av_trans_message.cpp", 54 "${av_trans_path}/common/src/softbus_channel_adapter.cpp", 55 "src/accessmanager/access_manager.cpp", 56 "src/componentloader/component_loader.cpp", 57 "src/componentmanager/component_disable.cpp", 58 "src/componentmanager/component_enable.cpp", 59 "src/componentmanager/component_manager.cpp", 60 "src/componentmanager/component_monitor.cpp", 61 "src/distributed_hardware_manager.cpp", 62 "src/distributed_hardware_manager_factory.cpp", 63 "src/distributed_hardware_service.cpp", 64 "src/distributed_hardware_stub.cpp", 65 "src/hidumphelper/enabled_comps_dump.cpp", 66 "src/hidumphelper/hidump_helper.cpp", 67 "src/ipc/publisher_listener_proxy.cpp", 68 "src/localhardwaremanager/local_hardware_manager.cpp", 69 "src/localhardwaremanager/plugin_listener_impl.cpp", 70 "src/lowlatency/low_latency.cpp", 71 "src/lowlatency/low_latency_listener.cpp", 72 "src/lowlatency/low_latency_timer.cpp", 73 "src/publisher/publisher.cpp", 74 "src/publisher/publisher_item.cpp", 75 "src/resourcemanager/capability_info.cpp", 76 "src/resourcemanager/capability_info_manager.cpp", 77 "src/resourcemanager/capability_utils.cpp", 78 "src/resourcemanager/db_adapter.cpp", 79 "src/resourcemanager/version_info.cpp", 80 "src/resourcemanager/version_info_manager.cpp", 81 "src/task/disable_task.cpp", 82 "src/task/enable_task.cpp", 83 "src/task/monitor_task_timer.cpp", 84 "src/task/offline_task.cpp", 85 "src/task/online_task.cpp", 86 "src/task/task.cpp", 87 "src/task/task_board.cpp", 88 "src/task/task_executor.cpp", 89 "src/task/task_factory.cpp", 90 "src/utils/dh_context.cpp", 91 "src/utils/dh_timer.cpp", 92 "src/versionmanager/version_manager.cpp", 93 ] 94 95 deps = [ "${utils_path}:distributedhardwareutils" ] 96 97 defines = [ 98 "HI_LOG_ENABLE", 99 "DH_LOG_TAG=\"dhfwksvr\"", 100 "LOG_DOMAIN=0xD004100", 101 ] 102 103 if (dhardware_low_latency) { 104 defines += [ "DHARDWARE_LOW_LATENCY" ] 105 } 106 107 external_deps = [ 108 "c_utils:utils", 109 "config_policy:configpolicy_util", 110 "device_manager:devicemanagersdk", 111 "dsoftbus:softbus_client", 112 "eventhandler:libeventhandler", 113 "hilog:libhilog", 114 "hisysevent:libhisysevent", 115 "hitrace:hitrace_meter", 116 "init:libbegetutil", 117 "ipc:ipc_core", 118 "kv_store:distributeddata_inner", 119 "resource_schedule_service:ressched_client", 120 "safwk:system_ability_fwk", 121 "samgr:samgr_proxy", 122 ] 123 124 subsystem_name = "distributedhardware" 125 126 part_name = "distributed_hardware_fwk" 127} 128