1# Copyright (c) 2021-2022 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 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include", 22 "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter", 23 "//commonlibrary/c_utils/base/include", 24 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include", 25 "//utils/system/safwk/native/include", 26 "include", 27 "include/accessmanager", 28 "${common_path}/log/include", 29 "${common_path}/utils/include", 30 "${utils_path}/include/log", 31 "${utils_path}/include", 32 "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include", 33 "//foundation/distributedhardware/device_manager/common/include", 34 "//third_party/json/include", 35 "include/componentloader", 36 "include/versionmanager", 37 "include/componentmanager", 38 "include/task", 39 "include/utils", 40 "include/localhardwaremanager", 41 "include/publisher", 42 "include/resourcemanager", 43 "include/hidumphelper", 44 "include/ipc", 45 "${utils_path}/include/eventbus", 46 ] 47 48 sources = [ 49 "src/accessmanager/access_manager.cpp", 50 "src/componentloader/component_loader.cpp", 51 "src/componentmanager/component_disable.cpp", 52 "src/componentmanager/component_enable.cpp", 53 "src/componentmanager/component_manager.cpp", 54 "src/componentmanager/component_monitor.cpp", 55 "src/distributed_hardware_manager.cpp", 56 "src/distributed_hardware_manager_factory.cpp", 57 "src/distributed_hardware_service.cpp", 58 "src/distributed_hardware_stub.cpp", 59 "src/hidumphelper/enabled_comps_dump.cpp", 60 "src/hidumphelper/hidump_helper.cpp", 61 "src/ipc/publisher_listener_proxy.cpp", 62 "src/localhardwaremanager/local_hardware_manager.cpp", 63 "src/localhardwaremanager/plugin_listener_impl.cpp", 64 "src/publisher/publisher.cpp", 65 "src/publisher/publisher_item.cpp", 66 "src/resourcemanager/capability_info.cpp", 67 "src/resourcemanager/capability_info_manager.cpp", 68 "src/resourcemanager/capability_utils.cpp", 69 "src/resourcemanager/db_adapter.cpp", 70 "src/resourcemanager/version_info.cpp", 71 "src/resourcemanager/version_info_manager.cpp", 72 "src/task/disable_task.cpp", 73 "src/task/enable_task.cpp", 74 "src/task/monitor_task_timer.cpp", 75 "src/task/offline_task.cpp", 76 "src/task/online_task.cpp", 77 "src/task/task.cpp", 78 "src/task/task_board.cpp", 79 "src/task/task_executor.cpp", 80 "src/task/task_factory.cpp", 81 "src/utils/dh_context.cpp", 82 "src/versionmanager/version_manager.cpp", 83 ] 84 85 deps = [ 86 "${utils_path}:distributedhardwareutils", 87 "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk", 88 "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk", 89 ] 90 91 defines = [ 92 "HI_LOG_ENABLE", 93 "DH_LOG_TAG=\"dhfwksvr\"", 94 "LOG_DOMAIN=0xD004100", 95 ] 96 97 external_deps = [ 98 "c_utils:utils", 99 "eventhandler:libeventhandler", 100 "init:libbegetutil", 101 "ipc:ipc_core", 102 "kv_store:distributeddata_inner", 103 "safwk:system_ability_fwk", 104 "samgr:samgr_proxy", 105 ] 106 107 subsystem_name = "distributedhardware" 108 109 part_name = "distributed_hardware_fwk" 110} 111