mirror of
https://gitee.com/openharmony/deviceprofile_device_info_manager
synced 2024-11-27 01:31:01 +00:00
5dc20b9ff7
Signed-off-by: guoyi <guoyi39@huawei.com>
143 lines
4.8 KiB
Plaintext
143 lines
4.8 KiB
Plaintext
# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
|
# 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 = [ ":*" ]
|
|
visibility += [ "./test/*" ]
|
|
include_dirs = [
|
|
"include",
|
|
"include/contentsensormanager",
|
|
"include/common",
|
|
"include/deviceprofilemanager",
|
|
"include/deviceprofilemanager/listener",
|
|
"include/dfx",
|
|
"include/dm_adapter",
|
|
"include/multiusermanager",
|
|
"include/permissionmanager",
|
|
"include/persistenceadapter",
|
|
"include/persistenceadapter/kvadapter",
|
|
"include/persistenceadapter/rdbadapter",
|
|
"include/publishcommonevent",
|
|
"include/subscribeprofilemanager",
|
|
"include/staticcapabilitycollector",
|
|
"include/staticcapabilityloader",
|
|
"include/trustprofilemanager",
|
|
"include/utils",
|
|
"${device_profile_common}/include/constants",
|
|
"${device_profile_common}/include/interfaces",
|
|
"${device_profile_common}/include/utils",
|
|
"${device_profile_path}/radar/include",
|
|
]
|
|
}
|
|
|
|
ohos_shared_library("distributed_device_profile_svr") {
|
|
branch_protector_ret = "pac_ret"
|
|
|
|
cflags = [
|
|
"-fstack-protector-strong",
|
|
"-D_FORTIFY_SOURCE=2",
|
|
"-O2",
|
|
]
|
|
|
|
cflags_cc = cflags
|
|
|
|
sanitize = {
|
|
boundary_sanitize = true
|
|
integer_overflow = true
|
|
ubsan = true
|
|
debug = false
|
|
}
|
|
|
|
install_enable = true
|
|
sources = [
|
|
"src/contentsensormanager/collaboration_info_collector.cpp",
|
|
"src/contentsensormanager/collector.cpp",
|
|
"src/contentsensormanager/content_sensor_manager.cpp",
|
|
"src/contentsensormanager/dms_info_collector.cpp",
|
|
"src/contentsensormanager/pasteboard_info_collector.cpp",
|
|
"src/contentsensormanager/switch_status_collector.cpp",
|
|
"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/deviceprofilemanager/static_profile_manager.cpp",
|
|
"src/deviceprofilemanager/switch_profile_manager.cpp",
|
|
"src/dfx/device_profile_dumper.cpp",
|
|
"src/distributed_device_profile_service_new.cpp",
|
|
"src/distributed_device_profile_stub_new.cpp",
|
|
"src/dm_adapter/dm_adapter.cpp",
|
|
"src/multiusermanager/multi_user_manager.cpp",
|
|
"src/permissionmanager/permission_manager.cpp",
|
|
"src/persistenceadapter/kvadapter/kv_adapter.cpp",
|
|
"src/persistenceadapter/kvadapter/switch_adapter.cpp",
|
|
"src/persistenceadapter/rdbadapter/rdb_adapter.cpp",
|
|
"src/publishcommonevent/dp_account_common_event.cpp",
|
|
"src/staticcapabilitycollector/static_capability_collector.cpp",
|
|
"src/staticcapabilityloader/static_capability_loader.cpp",
|
|
"src/subscribeprofilemanager/subscribe_profile_manager.cpp",
|
|
"src/trustprofilemanager/trust_profile_manager.cpp",
|
|
"src/utils/event_handler_factory.cpp",
|
|
"src/utils/profile_cache.cpp",
|
|
"src/utils/profile_control_utils.cpp",
|
|
]
|
|
|
|
deps = [
|
|
"${device_profile_common}:distributed_device_profile_common",
|
|
"${device_profile_path}/radar:device_profile_radar",
|
|
]
|
|
|
|
configs = [ ":device_info_manager_config" ]
|
|
|
|
external_deps = [
|
|
"access_token:libaccesstoken_sdk",
|
|
"cJSON:cjson",
|
|
"c_utils:utils",
|
|
"common_event_service:cesfwk_core",
|
|
"common_event_service:cesfwk_innerkits",
|
|
"config_policy:configpolicy_util",
|
|
"device_auth:deviceauth_sdk",
|
|
"device_manager:devicemanagersdk",
|
|
"dmsfwk:common_sdk",
|
|
"eventhandler:libeventhandler",
|
|
"ffrt:libffrt",
|
|
"hilog:libhilog",
|
|
"hisysevent:libhisysevent",
|
|
"hitrace:hitrace_meter",
|
|
"init:libbegetutil",
|
|
"ipc:ipc_core",
|
|
"kv_store:distributeddata_inner",
|
|
"os_account:libaccountkits",
|
|
"os_account:os_account_innerkits",
|
|
"relational_store:native_rdb",
|
|
"safwk:system_ability_fwk",
|
|
"samgr:samgr_common",
|
|
"samgr:samgr_proxy",
|
|
"syscap_codec:syscap_interface_shared",
|
|
]
|
|
|
|
part_name = "device_info_manager"
|
|
subsystem_name = "deviceprofile"
|
|
}
|
|
|
|
group("unittest") {
|
|
testonly = true
|
|
deps = [ "test:unittest" ]
|
|
}
|