rom优化

Signed-off-by: 张晟钰 <zhangshengyu5@huawei.com>
This commit is contained in:
张晟钰 2024-10-25 16:11:50 +08:00
parent ed0576db56
commit ecbfc5e98a
5 changed files with 40 additions and 0 deletions

View File

@ -77,6 +77,14 @@ ohos_shared_library("backup_extension_ability_native") {
"napi:ace_napi",
]
cflags_cc = [
"-fdata-sections",
"-ffunction-sections",
"-fno-unwind-tables",
"-fno-asynchronous-unwind-tables",
"-Os",
]
use_exceptions = true
relative_install_dir = "extensionability"
part_name = "app_file_service"

View File

@ -78,6 +78,14 @@ ohos_shared_library("backup_kit_inner") {
deps = [ "${path_backup}/utils:backup_utils" ]
cflags_cc = [
"-fdata-sections",
"-ffunction-sections",
"-fno-unwind-tables",
"-fno-asynchronous-unwind-tables",
"-Os",
]
use_exceptions = true
innerapi_tags = [ "platformsdk" ]
part_name = "app_file_service"

View File

@ -159,6 +159,14 @@ ohos_shared_library("backup") {
"${path_jsoncpp}:jsoncpp",
]
cflags_cc = [
"-fdata-sections",
"-ffunction-sections",
"-fno-unwind-tables",
"-fno-asynchronous-unwind-tables",
"-Os",
]
external_deps = [
"access_token:libaccesstoken_sdk",
"access_token:libtokenid_sdk",

View File

@ -82,6 +82,14 @@ ohos_shared_library("backup_sa") {
"storage_service:storage_manager_sa_proxy",
]
cflags_cc = [
"-fdata-sections",
"-ffunction-sections",
"-fno-unwind-tables",
"-fno-asynchronous-unwind-tables",
"-Os",
]
use_exceptions = true
part_name = "app_file_service"
subsystem_name = "filemanagement"

View File

@ -114,6 +114,14 @@ ohos_shared_library("backup_utils") {
"//third_party/openssl:libcrypto_shared",
]
cflags_cc = [
"-fdata-sections",
"-ffunction-sections",
"-fno-unwind-tables",
"-fno-asynchronous-unwind-tables",
"-Os",
]
use_exceptions = true
innerapi_tags = [ "platformsdk" ]
part_name = "app_file_service"