• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  sanitize = {
21    boundary_sanitize = true
22    integer_overflow = true
23    ubsan = true
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28  branch_protector_ret = "pac_ret"
29  include_dirs = [
30    "include",
31    "include/accessmanager",
32    "${av_center_svc_path}/include",
33    "${av_center_svc_path}/include/ipc",
34    "${av_trans_path}/common/include",
35    "${av_trans_path}/interface",
36    "${innerkits_path}/include",
37    "${common_path}/log/include",
38    "${common_path}/utils/include",
39    "${utils_path}/include/log",
40    "${utils_path}/include",
41    "//third_party/json/include",
42    "include/componentloader",
43    "include/versionmanager",
44    "include/componentmanager",
45    "include/task",
46    "include/utils",
47    "include/localhardwaremanager",
48    "include/publisher",
49    "include/resourcemanager",
50    "include/hidumphelper",
51    "include/ipc",
52    "${utils_path}/include/eventbus",
53    "include/lowlatency",
54  ]
55
56  sources = [
57    "${av_center_svc_path}/src/av_sync_manager.cpp",
58    "${av_center_svc_path}/src/av_trans_control_center.cpp",
59    "${av_center_svc_path}/src/ipc/av_trans_control_center_callback_proxy.cpp",
60    "${av_trans_path}/common/src/av_sync_utils.cpp",
61    "${av_trans_path}/common/src/av_trans_log.cpp",
62    "${av_trans_path}/common/src/av_trans_message.cpp",
63    "${av_trans_path}/common/src/softbus_channel_adapter.cpp",
64    "src/accessmanager/access_manager.cpp",
65    "src/componentloader/component_loader.cpp",
66    "src/componentmanager/component_disable.cpp",
67    "src/componentmanager/component_enable.cpp",
68    "src/componentmanager/component_manager.cpp",
69    "src/componentmanager/component_monitor.cpp",
70    "src/componentmanager/component_privacy.cpp",
71    "src/distributed_hardware_manager.cpp",
72    "src/distributed_hardware_manager_factory.cpp",
73    "src/distributed_hardware_service.cpp",
74    "src/distributed_hardware_stub.cpp",
75    "src/hidumphelper/enabled_comps_dump.cpp",
76    "src/hidumphelper/hidump_helper.cpp",
77    "src/ipc/publisher_listener_proxy.cpp",
78    "src/localhardwaremanager/local_hardware_manager.cpp",
79    "src/localhardwaremanager/plugin_listener_impl.cpp",
80    "src/lowlatency/low_latency.cpp",
81    "src/lowlatency/low_latency_listener.cpp",
82    "src/lowlatency/low_latency_timer.cpp",
83    "src/publisher/publisher.cpp",
84    "src/publisher/publisher_item.cpp",
85    "src/resourcemanager/capability_info.cpp",
86    "src/resourcemanager/capability_info_manager.cpp",
87    "src/resourcemanager/capability_utils.cpp",
88    "src/resourcemanager/db_adapter.cpp",
89    "src/resourcemanager/version_info.cpp",
90    "src/resourcemanager/version_info_manager.cpp",
91    "src/task/disable_task.cpp",
92    "src/task/enable_task.cpp",
93    "src/task/monitor_task_timer.cpp",
94    "src/task/offline_task.cpp",
95    "src/task/online_task.cpp",
96    "src/task/task.cpp",
97    "src/task/task_board.cpp",
98    "src/task/task_executor.cpp",
99    "src/task/task_factory.cpp",
100    "src/utils/dh_context.cpp",
101    "src/utils/dh_timer.cpp",
102    "src/versionmanager/version_manager.cpp",
103  ]
104
105  deps = [ "${utils_path}:distributedhardwareutils" ]
106
107  defines = [
108    "HI_LOG_ENABLE",
109    "DH_LOG_TAG=\"dhfwksvr\"",
110    "LOG_DOMAIN=0xD004100",
111  ]
112
113  if (dhardware_low_latency) {
114    defines += [ "DHARDWARE_LOW_LATENCY" ]
115  }
116
117  external_deps = [
118    "ability_base:want",
119    "ability_runtime:ability_manager",
120    "access_token:libaccesstoken_sdk",
121    "access_token:libtokenid_sdk",
122    "c_utils:utils",
123    "config_policy:configpolicy_util",
124    "device_manager:devicemanagersdk",
125    "dsoftbus:softbus_client",
126    "eventhandler:libeventhandler",
127    "hilog:libhilog",
128    "hisysevent:libhisysevent",
129    "hitrace:hitrace_meter",
130    "init:libbegetutil",
131    "ipc:ipc_core",
132    "kv_store:distributeddata_inner",
133    "power_manager:powermgr_client",
134    "resource_schedule_service:ressched_client",
135    "safwk:system_ability_fwk",
136    "samgr:samgr_proxy",
137  ]
138
139  subsystem_name = "distributedhardware"
140
141  part_name = "distributed_hardware_fwk"
142}
143