2024-02-19 05:42:35 +00:00
|
|
|
# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
2023-11-10 16:37:29 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
import("//build/ohos.gni")
|
|
|
|
import("//build/ohos_var.gni")
|
|
|
|
import("//foundation/deviceprofile/device_info_manager/deviceprofile.gni")
|
|
|
|
|
|
|
|
config("device_info_manager_config") {
|
|
|
|
visibility = [ ":*" ]
|
2023-11-25 10:21:24 +00:00
|
|
|
visibility += [ "./test/*" ]
|
2023-11-10 16:37:29 +00:00
|
|
|
include_dirs = [
|
2023-11-10 18:05:19 +00:00
|
|
|
"include",
|
|
|
|
"include/contentsensormanager",
|
|
|
|
"include/deviceprofilemanager",
|
|
|
|
"include/deviceprofilemanager/listener",
|
|
|
|
"include/dfx",
|
2024-02-04 03:47:07 +00:00
|
|
|
"include/dm_adapter",
|
2023-11-10 18:05:19 +00:00
|
|
|
"include/permissionmanager",
|
|
|
|
"include/persistenceadapter",
|
|
|
|
"include/persistenceadapter/kvadapter",
|
|
|
|
"include/persistenceadapter/rdbadapter",
|
|
|
|
"include/subscribeprofilemanager",
|
|
|
|
"include/trustprofilemanager",
|
|
|
|
"include/utils",
|
|
|
|
"${device_profile_common}/include/constants",
|
|
|
|
"${device_profile_common}/include/interfaces",
|
|
|
|
"${device_profile_common}/include/utils",
|
2023-11-10 16:37:29 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
ohos_shared_library("distributed_device_profile_svr") {
|
|
|
|
install_enable = true
|
|
|
|
sources = [
|
2024-02-08 01:56:57 +00:00
|
|
|
"src/contentsensormanager/collaboration_info_collector.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"src/contentsensormanager/collector.cpp",
|
|
|
|
"src/contentsensormanager/content_sensor_manager.cpp",
|
2024-01-23 12:56:47 +00:00
|
|
|
"src/contentsensormanager/dms_info_collector.cpp",
|
2024-02-19 05:42:35 +00:00
|
|
|
"src/contentsensormanager/pasteboard_info_collector.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"src/contentsensormanager/syscap_info_collector.cpp",
|
|
|
|
"src/contentsensormanager/system_info_collector.cpp",
|
|
|
|
"src/deviceprofilemanager/device_profile_manager.cpp",
|
|
|
|
"src/deviceprofilemanager/listener/kv_data_change_listener.cpp",
|
|
|
|
"src/deviceprofilemanager/listener/kv_store_death_recipient.cpp",
|
|
|
|
"src/deviceprofilemanager/listener/kv_sync_completed_listener.cpp",
|
|
|
|
"src/deviceprofilemanager/listener/sync_subscriber_death_recipient.cpp",
|
|
|
|
"src/dfx/device_profile_dumper.cpp",
|
|
|
|
"src/distributed_device_profile_service_new.cpp",
|
|
|
|
"src/distributed_device_profile_stub_new.cpp",
|
2024-02-04 03:47:07 +00:00
|
|
|
"src/dm_adapter/dm_adapter.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"src/permissionmanager/permission_manager.cpp",
|
|
|
|
"src/persistenceadapter/kvadapter/kv_adapter.cpp",
|
|
|
|
"src/persistenceadapter/rdbadapter/rdb_adapter.cpp",
|
|
|
|
"src/subscribeprofilemanager/subscribe_profile_manager.cpp",
|
|
|
|
"src/trustprofilemanager/trust_profile_manager.cpp",
|
|
|
|
"src/utils/event_handler_factory.cpp",
|
|
|
|
"src/utils/profile_cache.cpp",
|
2023-11-10 16:37:29 +00:00
|
|
|
]
|
|
|
|
|
2024-02-19 05:42:35 +00:00
|
|
|
deps = [
|
|
|
|
"${device_profile_common}:distributed_device_profile_common",
|
|
|
|
]
|
2023-11-10 16:37:29 +00:00
|
|
|
|
2023-11-10 18:05:19 +00:00
|
|
|
configs = [ ":device_info_manager_config" ]
|
2023-11-10 16:37:29 +00:00
|
|
|
|
|
|
|
external_deps = [
|
|
|
|
"access_token:libaccesstoken_sdk",
|
2024-03-23 01:46:52 +00:00
|
|
|
"cJSON:cjson",
|
2023-11-10 16:37:29 +00:00
|
|
|
"c_utils:utils",
|
|
|
|
"device_auth:deviceauth_sdk",
|
|
|
|
"device_manager:devicemanagersdk",
|
|
|
|
"dmsfwk:common_sdk",
|
|
|
|
"eventhandler:libeventhandler",
|
|
|
|
"hilog:libhilog",
|
|
|
|
"hisysevent:libhisysevent",
|
|
|
|
"hitrace:hitrace_meter",
|
|
|
|
"init:libbegetutil",
|
|
|
|
"ipc:ipc_core",
|
|
|
|
"kv_store:distributeddata_inner",
|
2023-11-10 18:05:19 +00:00
|
|
|
"relational_store:native_rdb",
|
2023-11-10 16:37:29 +00:00
|
|
|
"safwk:system_ability_fwk",
|
|
|
|
"samgr:samgr_proxy",
|
|
|
|
"syscap_codec:syscap_interface_shared",
|
|
|
|
]
|
|
|
|
|
|
|
|
part_name = "device_info_manager"
|
|
|
|
subsystem_name = "deviceprofile"
|
2023-11-10 18:05:19 +00:00
|
|
|
}
|
2023-11-25 10:21:24 +00:00
|
|
|
|
|
|
|
group("unittest") {
|
|
|
|
testonly = true
|
|
|
|
deps = [ "test:unittest" ]
|
|
|
|
}
|