mirror of
https://gitee.com/openharmony/msdp_device_status
synced 2024-11-23 15:40:16 +00:00
!1083 Add prorsad cfi
Merge pull request !1083 from hewanglong/prorsadCfi
This commit is contained in:
commit
dbea969b7c
@ -15,6 +15,12 @@ import("//base/msdp/device_status/device_status.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
ohos_shared_library("inputdevicecooperate") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [
|
||||
"src/js_cooperate_context.cpp",
|
||||
"src/js_cooperate_manager.cpp",
|
||||
|
@ -15,6 +15,12 @@ import("//build/ohos.gni")
|
||||
import("../../../../../device_status.gni")
|
||||
|
||||
ohos_shared_library("cooperate") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [
|
||||
"src/js_coordination_context.cpp",
|
||||
"src/js_coordination_manager.cpp",
|
||||
|
@ -15,6 +15,12 @@ import("//build/ohos.gni")
|
||||
import("../../../../../device_status.gni")
|
||||
|
||||
ohos_shared_library("draginteraction") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [
|
||||
"src/js_drag_context.cpp",
|
||||
"src/js_drag_manager.cpp",
|
||||
|
@ -34,6 +34,12 @@ config("devicestatus_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("devicestatus_client") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
version_script = "libdevicestatus_client_map"
|
||||
sources = [
|
||||
"${device_status_frameworks_path}/native/interaction/src/drag_manager_impl.cpp",
|
||||
|
@ -27,6 +27,12 @@ config("devicestatus_srv_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("devicestatus_mock") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [
|
||||
"src/devicestatus_data_parse.cpp",
|
||||
"src/devicestatus_msdp_mock.cpp",
|
||||
|
@ -31,6 +31,12 @@ config("fusion_data_binding_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("fusion_data_binding") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [ "src/fusion_data_binding.cpp" ]
|
||||
|
||||
deps = [ "${device_status_root_path}/utils/common:devicestatus_util" ]
|
||||
|
@ -27,6 +27,12 @@ config("fusion_services_binding_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("fusion_services_binding") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [ "src/fusion_services_binding.cpp" ]
|
||||
|
||||
deps = [
|
||||
|
@ -27,6 +27,12 @@ config("fusion_subsystem_binding_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("fusion_subsystem_binding") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [ "multimedia/src/fusion_image_framework.cpp" ]
|
||||
|
||||
deps = [ "${device_status_root_path}/utils/common:devicestatus_util" ]
|
||||
|
@ -81,6 +81,12 @@ external_deps_set = [
|
||||
]
|
||||
|
||||
ohos_shared_library("devicestatus_service") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
shlib_type = "sa"
|
||||
include_dirs = [ "//third_party/cJSON" ]
|
||||
|
||||
@ -122,6 +128,12 @@ ohos_shared_library("devicestatus_service") {
|
||||
}
|
||||
|
||||
ohos_static_library("devicestatus_static_service") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
include_dirs = [ "//third_party/cJSON" ]
|
||||
|
||||
sources = sources_set
|
||||
|
@ -18,6 +18,12 @@ config("coordination_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("coordination") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
include_dirs = [
|
||||
"include",
|
||||
"${device_status_interfaces_path}/innerkits/interaction/include",
|
||||
|
@ -22,6 +22,12 @@ config("interaction_drag_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("interaction_drag") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
include_dirs = [
|
||||
"include",
|
||||
"${device_status_interfaces_path}/innerkits/interaction/include",
|
||||
|
@ -84,7 +84,7 @@ void DeviceStatusService::OnStart()
|
||||
return;
|
||||
}
|
||||
#ifndef OHOS_BUILD_ENABLE_RUST_IMPL
|
||||
if (!Publish(DelayedSpSingleton<DeviceStatusService>::GetInstance())) {
|
||||
if (!Publish(this)) {
|
||||
FI_HILOGE("On start register to system ability manager failed");
|
||||
return;
|
||||
}
|
||||
@ -167,8 +167,7 @@ bool DeviceStatusService::Init()
|
||||
CALL_DEBUG_ENTER;
|
||||
if (devicestatusManager_ == nullptr) {
|
||||
FI_HILOGW("devicestatusManager_ is nullptr");
|
||||
auto ms = DelayedSpSingleton<DeviceStatusService>::GetInstance();
|
||||
devicestatusManager_ = std::make_shared<DeviceStatusManager>(ms);
|
||||
devicestatusManager_ = std::make_shared<DeviceStatusManager>(this);
|
||||
}
|
||||
if (!devicestatusManager_->Init()) {
|
||||
FI_HILOGE("OnStart init failed");
|
||||
|
@ -25,6 +25,12 @@ config("devicestatus_vdev_public_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("devicestatus_vdev") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [
|
||||
"src/v_input_device.cpp",
|
||||
"src/virtual_device.cpp",
|
||||
@ -62,6 +68,12 @@ config("devicestatus_vdev_builders_public_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("devicestatus_vdev_builders") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [
|
||||
"src/virtual_device_builder.cpp",
|
||||
"src/virtual_keyboard_builder.cpp",
|
||||
@ -90,6 +102,12 @@ ohos_source_set("devicestatus_vdev_builders") {
|
||||
}
|
||||
|
||||
ohos_executable("vdevadm") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
include_dirs = [
|
||||
"include",
|
||||
"//third_party/json/include",
|
||||
|
@ -29,6 +29,12 @@ config("devicestatus_util_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("devicestatus_util") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
version_script = "libdevicestatus_util_map"
|
||||
sources = [
|
||||
"src/util.cpp",
|
||||
|
@ -23,6 +23,12 @@ config("devicestatus_ipc_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("devicestatus_ipc") {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
|
||||
sources = [
|
||||
"src/circle_stream_buffer.cpp",
|
||||
"src/net_packet.cpp",
|
||||
|
Loading…
Reference in New Issue
Block a user