!946 add CFI config

Merge pull request !946 from LeiiYB/master
This commit is contained in:
openharmony_ci 2023-11-10 06:28:10 +00:00 committed by Gitee
commit 12fac016f4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
11 changed files with 104 additions and 0 deletions

View File

@ -22,6 +22,13 @@ ohos_copy("relational_store_declaration") {
}
ohos_shared_library("clouddata") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [
"${cloud_data_napi_path}/src/entry_point.cpp",
"${cloud_data_napi_path}/src/js_config.cpp",

View File

@ -22,6 +22,13 @@ ohos_copy("relational_store_declaration") {
}
ohos_shared_library("dataability") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
include_dirs = [
"include",
"${relational_store_common_path}/include",

View File

@ -63,6 +63,15 @@ ohos_shared_library("napi_rdb") {
"//foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb:native_rdb",
]
} else {
if (is_ohos) {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
}
include_dirs = [
"include",
"${datashare_path}/common/include/",
@ -130,6 +139,15 @@ ohos_shared_library("rdb") {
"//foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb:native_rdb",
]
} else {
if (is_ohos) {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
}
include_dirs = [
"include",
"${datashare_path}/common/include/",

View File

@ -37,6 +37,13 @@ sources = [
if (is_ohos) {
ohos_shared_library("relationalstore") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
include_dirs = [
"include",
"${datashare_path}/common/include/",

View File

@ -70,6 +70,15 @@ if (is_android || is_ios) {
}
} else {
ohos_shared_library("relational_common_base") {
if (is_ohos) {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
}
sources =
[ "${relational_store_native_path}/appdatafwk/src/serializable.cpp" ]
@ -96,6 +105,13 @@ if (is_android || is_ios) {
}
ohos_shared_library("native_appdatafwk") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources =
[ "${relational_store_native_path}/appdatafwk/src/shared_block.cpp" ]

View File

@ -22,6 +22,13 @@ config("cloud_public_config") {
}
ohos_static_library("cloud_data_inner") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
part_name = "relational_store"
public_configs = [ ":cloud_public_config" ]
subsystem_name = "distributeddatamgr"

View File

@ -36,6 +36,13 @@ config("native_dataability_public_config") {
}
ohos_shared_library("native_dataability") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
part_name = "relational_store"
sources = [
"${relational_store_native_path}/dataability/src/data_ability_predicates.cpp",

View File

@ -86,6 +86,13 @@ if (is_ohos && !build_ohos_sdk) {
]
ohos_shared_library("native_rdb") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
part_name = "relational_store"
sources = base_sources
@ -137,6 +144,13 @@ if (is_ohos && !build_ohos_sdk) {
}
ohos_static_library("native_rdb_static") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources = base_sources
configs = [ ":native_rdb_config" ]

View File

@ -38,6 +38,13 @@ config("rdb_bms_adapter_public_config") {
}
ohos_shared_library("rdb_bms_adapter") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [
"${relational_store_native_path}/rdb_bms_adaptor/src/data_properties.cpp",
"${relational_store_native_path}/rdb_bms_adaptor/src/data_share_profile_info.cpp",

View File

@ -33,6 +33,13 @@ config("rdb_data_ability_adapter_public_config") {
}
ohos_shared_library("rdb_data_ability_adapter") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [
"${relational_store_native_path}/rdb_data_ability_adapter/src/rdb_data_ability_utils.cpp",
"${relational_store_native_path}/rdb_data_ability_adapter/src/result_set_utils.cpp",

View File

@ -38,6 +38,13 @@ config("rdb_data_share_adapter_public_config") {
}
ohos_shared_library("rdb_data_share_adapter") {
branch_protector_ret = "pac_ret"
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [
"${relational_store_native_path}/rdb_data_share_adapter/src/rdb_result_set_bridge.cpp",
"${relational_store_native_path}/rdb_data_share_adapter/src/rdb_utils.cpp",