1# Copyright (c) 2021 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("//foundation/distributedhardware/distributedhardwarefwk/distributedhardwarefwk.gni") 17 18ohos_shared_library("distributedhardwarefwksvr_impl") { 19 include_dirs = [ 20 "//utils/native/base/include", 21 "//utils/system/safwk/native/include", 22 "//third_party/json/include", 23 "include", 24 "include/componentloader", 25 "include/versionmanager", 26 "include/componentmanager", 27 "include/task", 28 "include/utils", 29 "include/localhardwaremanager", 30 "include/resourcemanager", 31 "${common_path}/log/include", 32 "${common_path}/utils/include", 33 "${utils_path}/include", 34 "${utils_path}/include/log", 35 "${utils_path}/include/eventbus", 36 ] 37 38 sources = [ 39 "src/distributed_hardware_manager.cpp", 40 "src/distributed_hardware_proxy.cpp", 41 "src/componentloader/component_loader.cpp", 42 "src/task/disable_task.cpp", 43 "src/task/enable_task.cpp", 44 "src/task/offline_task.cpp", 45 "src/task/online_task.cpp", 46 "src/task/task_board.cpp", 47 "src/task/task_executor.cpp", 48 "src/task/task_factory.cpp", 49 "src/task/task.cpp", 50 "src/utils/dh_context.cpp", 51 "src/versionmanager/version_manager.cpp", 52 "src/componentmanager/component_manager.cpp", 53 "src/componentmanager/component_enable.cpp", 54 "src/componentmanager/component_disable.cpp", 55 "src/localhardwaremanager/local_hardware_manager.cpp", 56 "src/resourcemanager/capability_info.cpp", 57 "src/resourcemanager/capability_info_manager.cpp", 58 "src/resourcemanager/db_adapter.cpp", 59 "src/resourcemanager/capability_utils.cpp" 60 ] 61 62 deps = [ 63 "${utils_path}:distributedhardwareutils", 64 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 65 "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager", 66 "//foundation/aafwk/standard/services/abilitymgr:abilityms", 67 "//utils/native/base:utils", 68 ] 69 70 defines = [ 71 "HI_LOG_ENABLE", 72 "DH_LOG_TAG=\"dhfwksvr\"", 73 "LOG_DOMAIN=0xD004100", 74 ] 75 76 external_deps = [ 77 "bundle_framework:appexecfwk_base", 78 "bundle_framework:appexecfwk_core", 79 "eventhandler:libeventhandler", 80 "hiviewdfx_hilog_native:libhilog", 81 "distributeddatamgr:distributeddata_inner", 82 "ipc:ipc_core", 83 "safwk:system_ability_fwk", 84 "samgr_standard:samgr_proxy", 85 "startup_l2:syspara", 86 ] 87 88 subsystem_name = "distributedhardware" 89 90 part_name = "distributed_hardware_fwk" 91}