mirror of
https://gitee.com/openharmony/deviceprofile_device_info_manager
synced 2024-11-23 07:30:13 +00:00
commit
430b022346
@ -27,6 +27,14 @@ config("distributed_device_profile_common_config") {
|
||||
ohos_shared_library("distributed_device_profile_common") {
|
||||
branch_protector_ret = "pac_ret"
|
||||
|
||||
cflags = [
|
||||
"-fstack-protector-strong",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-O2",
|
||||
]
|
||||
|
||||
cflags_cc = cflags
|
||||
|
||||
sanitize = {
|
||||
boundary_sanitize = true
|
||||
integer_overflow = true
|
||||
|
@ -30,6 +30,14 @@ config("distributed_device_profile_sdk_config") {
|
||||
ohos_shared_library("distributed_device_profile_sdk") {
|
||||
branch_protector_ret = "pac_ret"
|
||||
|
||||
cflags = [
|
||||
"-fstack-protector-strong",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-O2",
|
||||
]
|
||||
|
||||
cflags_cc = cflags
|
||||
|
||||
sanitize = {
|
||||
boundary_sanitize = true
|
||||
integer_overflow = true
|
||||
|
@ -28,6 +28,14 @@ config("distributed_device_profile_client_config") {
|
||||
ohos_shared_library("distributed_device_profile_client") {
|
||||
branch_protector_ret = "pac_ret"
|
||||
|
||||
cflags = [
|
||||
"-fstack-protector-strong",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-O2",
|
||||
]
|
||||
|
||||
cflags_cc = cflags
|
||||
|
||||
sanitize = {
|
||||
boundary_sanitize = true
|
||||
integer_overflow = true
|
||||
|
@ -17,6 +17,14 @@ import("//foundation/deviceprofile/device_info_manager/deviceprofile.gni")
|
||||
ohos_shared_library("deviceprofileradar") {
|
||||
branch_protector_ret = "pac_ret"
|
||||
|
||||
cflags = [
|
||||
"-fstack-protector-strong",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-O2",
|
||||
]
|
||||
|
||||
cflags_cc = cflags
|
||||
|
||||
sanitize = {
|
||||
boundary_sanitize = true
|
||||
integer_overflow = true
|
||||
|
@ -53,6 +53,14 @@ config("device_info_manager_config") {
|
||||
ohos_shared_library("distributed_device_profile") {
|
||||
branch_protector_ret = "pac_ret"
|
||||
|
||||
cflags = [
|
||||
"-fstack-protector-strong",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-O2",
|
||||
]
|
||||
|
||||
cflags_cc = cflags
|
||||
|
||||
sanitize = {
|
||||
boundary_sanitize = true
|
||||
integer_overflow = true
|
||||
|
@ -15,6 +15,16 @@ import("//build/ohos.gni")
|
||||
import("//build/ohos_var.gni")
|
||||
import("//foundation/deviceprofile/device_info_manager/deviceprofile.gni")
|
||||
ohos_shared_library("device_profile_radar") {
|
||||
branch_protector_ret = "pac_ret"
|
||||
|
||||
cflags = [
|
||||
"-fstack-protector-strong",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-O2",
|
||||
]
|
||||
|
||||
cflags_cc = cflags
|
||||
|
||||
include_dirs = [
|
||||
"include",
|
||||
"${device_profile_common}/include/constants",
|
||||
|
@ -45,6 +45,14 @@ config("device_info_manager_config") {
|
||||
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
|
||||
|
@ -63,7 +63,7 @@ int32_t RdbAdapter::Init()
|
||||
|
||||
int32_t RdbAdapter::UnInit()
|
||||
{
|
||||
HILOGI("rdbAdapter unInit ");
|
||||
HILOGI("rdbAdapter unInit");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(rdbAdapterMtx_);
|
||||
store_ = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user