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",
|
2024-05-19 07:53:34 +00:00
|
|
|
"include/common",
|
2023-11-10 18:05:19 +00:00
|
|
|
"include/deviceprofilemanager",
|
|
|
|
"include/deviceprofilemanager/listener",
|
|
|
|
"include/dfx",
|
2024-02-04 03:47:07 +00:00
|
|
|
"include/dm_adapter",
|
2024-10-25 07:33:10 +00:00
|
|
|
"include/multiusermanager",
|
2023-11-10 18:05:19 +00:00
|
|
|
"include/permissionmanager",
|
|
|
|
"include/persistenceadapter",
|
|
|
|
"include/persistenceadapter/kvadapter",
|
|
|
|
"include/persistenceadapter/rdbadapter",
|
2024-10-25 07:33:10 +00:00
|
|
|
"include/publishcommonevent",
|
2023-11-10 18:05:19 +00:00
|
|
|
"include/subscribeprofilemanager",
|
2024-05-19 07:53:34 +00:00
|
|
|
"include/staticcapabilitycollector",
|
|
|
|
"include/staticcapabilityloader",
|
2023-11-10 18:05:19 +00:00
|
|
|
"include/trustprofilemanager",
|
|
|
|
"include/utils",
|
|
|
|
"${device_profile_common}/include/constants",
|
|
|
|
"${device_profile_common}/include/interfaces",
|
|
|
|
"${device_profile_common}/include/utils",
|
2024-03-27 08:41:21 +00:00
|
|
|
"${device_profile_path}/radar/include",
|
2023-11-10 16:37:29 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
ohos_shared_library("distributed_device_profile_svr") {
|
2024-03-20 03:56:09 +00:00
|
|
|
branch_protector_ret = "pac_ret"
|
|
|
|
|
2024-09-02 04:44:22 +00:00
|
|
|
cflags = [
|
|
|
|
"-fstack-protector-strong",
|
|
|
|
"-D_FORTIFY_SOURCE=2",
|
|
|
|
"-O2",
|
|
|
|
]
|
|
|
|
|
|
|
|
cflags_cc = cflags
|
|
|
|
|
2024-03-20 03:56:09 +00:00
|
|
|
sanitize = {
|
|
|
|
boundary_sanitize = true
|
|
|
|
integer_overflow = true
|
|
|
|
ubsan = true
|
|
|
|
debug = false
|
|
|
|
}
|
|
|
|
|
2023-11-10 16:37:29 +00:00
|
|
|
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",
|
2024-05-19 07:53:34 +00:00
|
|
|
"src/contentsensormanager/switch_status_collector.cpp",
|
2024-05-19 10:25:30 +00:00
|
|
|
"src/contentsensormanager/syscap_info_collector.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"src/contentsensormanager/system_info_collector.cpp",
|
2024-05-19 10:09:38 +00:00
|
|
|
"src/deviceprofilemanager/device_profile_manager.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"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",
|
2024-05-19 10:25:30 +00:00
|
|
|
"src/deviceprofilemanager/static_profile_manager.cpp",
|
|
|
|
"src/deviceprofilemanager/switch_profile_manager.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"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",
|
2024-10-25 07:33:10 +00:00
|
|
|
"src/multiusermanager/multi_user_manager.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"src/permissionmanager/permission_manager.cpp",
|
|
|
|
"src/persistenceadapter/kvadapter/kv_adapter.cpp",
|
2024-05-19 07:53:34 +00:00
|
|
|
"src/persistenceadapter/kvadapter/switch_adapter.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"src/persistenceadapter/rdbadapter/rdb_adapter.cpp",
|
2024-10-25 07:33:10 +00:00
|
|
|
"src/publishcommonevent/dp_account_common_event.cpp",
|
2024-05-19 10:25:30 +00:00
|
|
|
"src/staticcapabilitycollector/static_capability_collector.cpp",
|
|
|
|
"src/staticcapabilityloader/static_capability_loader.cpp",
|
2023-11-10 18:05:19 +00:00
|
|
|
"src/subscribeprofilemanager/subscribe_profile_manager.cpp",
|
|
|
|
"src/trustprofilemanager/trust_profile_manager.cpp",
|
|
|
|
"src/utils/event_handler_factory.cpp",
|
|
|
|
"src/utils/profile_cache.cpp",
|
2024-05-19 07:53:34 +00:00
|
|
|
"src/utils/profile_control_utils.cpp",
|
2023-11-10 16:37:29 +00:00
|
|
|
]
|
|
|
|
|
2024-03-27 08:41:21 +00:00
|
|
|
deps = [
|
|
|
|
"${device_profile_common}:distributed_device_profile_common",
|
|
|
|
"${device_profile_path}/radar:device_profile_radar",
|
|
|
|
]
|
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 02:01:57 +00:00
|
|
|
"cJSON:cjson",
|
2023-11-10 16:37:29 +00:00
|
|
|
"c_utils:utils",
|
2024-10-25 07:33:10 +00:00
|
|
|
"common_event_service:cesfwk_core",
|
|
|
|
"common_event_service:cesfwk_innerkits",
|
2024-05-17 18:47:15 +00:00
|
|
|
"config_policy:configpolicy_util",
|
2023-11-10 16:37:29 +00:00
|
|
|
"device_auth:deviceauth_sdk",
|
|
|
|
"device_manager:devicemanagersdk",
|
|
|
|
"dmsfwk:common_sdk",
|
|
|
|
"eventhandler:libeventhandler",
|
2024-11-03 02:16:53 +00:00
|
|
|
"ffrt:libffrt",
|
2023-11-10 16:37:29 +00:00
|
|
|
"hilog:libhilog",
|
|
|
|
"hisysevent:libhisysevent",
|
|
|
|
"hitrace:hitrace_meter",
|
|
|
|
"init:libbegetutil",
|
|
|
|
"ipc:ipc_core",
|
|
|
|
"kv_store:distributeddata_inner",
|
2024-10-25 07:33:10 +00:00
|
|
|
"os_account:libaccountkits",
|
|
|
|
"os_account:os_account_innerkits",
|
2023-11-10 18:05:19 +00:00
|
|
|
"relational_store:native_rdb",
|
2023-11-10 16:37:29 +00:00
|
|
|
"safwk:system_ability_fwk",
|
2024-10-29 12:19:46 +00:00
|
|
|
"samgr:samgr_common",
|
2023-11-10 16:37:29 +00:00
|
|
|
"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" ]
|
|
|
|
}
|