add cfi Signed-off-by:li-bo-boblove<boblove.libo@huawei.com>

Signed-off-by: li-bo-boblove <boblove.libo@huawei.com>
This commit is contained in:
li-bo-boblove 2023-10-14 11:23:32 +08:00
parent 1a33a6f29b
commit fe00c5766d
3 changed files with 15 additions and 0 deletions

View File

@ -28,6 +28,11 @@ config("devicestatus_callback_config") {
}
ohos_shared_library("stationary") {
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [
"${device_status_frameworks_path}/js/napi/src/devicestatus_event.cpp",
"${device_status_frameworks_path}/js/napi/src/devicestatus_napi.cpp",

View File

@ -24,6 +24,11 @@ config("devicestatusnapi_private_config") {
}
ohos_shared_library("deviceagent") {
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [ "./devicestatus_agent.cpp" ]
configs = [

View File

@ -54,6 +54,11 @@ ohos_shared_library("devicestatus_mock") {
}
ohos_shared_library("devicestatus_algo") {
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [
"src/algorithm/algo_absolute_still.cpp",
"src/algorithm/algo_base.cpp",