1# Copyright (c) 2022-2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//foundation/filemanagement/app_file_service/backup.gni") 16 17ohos_shared_library("backup_sa") { 18 stack_protector_ret = true 19 sanitize = { 20 integer_overflow = true 21 ubsan = true 22 boundary_sanitize = true 23 cfi = true 24 cfi_cross_dso = true 25 debug = false 26 } 27 28 sources = [ 29 "src/module_app_gallery/app_gallery_dispose_proxy.cpp", 30 "src/module_external/bms_adapter.cpp", 31 "src/module_external/sms_adapter.cpp", 32 "src/module_ipc/service.cpp", 33 "src/module_ipc/service_incremental.cpp", 34 "src/module_ipc/service_incremental_reverse_proxy.cpp", 35 "src/module_ipc/service_reverse_proxy.cpp", 36 "src/module_ipc/service_stub.cpp", 37 "src/module_ipc/svc_backup_connection.cpp", 38 "src/module_ipc/svc_extension_incremental_proxy.cpp", 39 "src/module_ipc/svc_extension_proxy.cpp", 40 "src/module_ipc/svc_restore_deps_manager.cpp", 41 "src/module_ipc/svc_session_manager.cpp", 42 "src/module_sched/sched_scheduler.cpp", 43 ] 44 45 defines = [ 46 "LOG_DOMAIN=0xD004303", 47 "LOG_TAG=\"BackupSA\"", 48 ] 49 50 include_dirs = [ "include" ] 51 52 deps = [ 53 "${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner", 54 "${path_backup}/utils:backup_utils", 55 "${path_jsoncpp}:jsoncpp", 56 ] 57 58 external_deps = [ 59 "ability_base:want", 60 "ability_runtime:ability_manager", 61 "access_token:libaccesstoken_sdk", 62 "bundle_framework:appexecfwk_base", 63 "bundle_framework:appexecfwk_core", 64 "c_utils:utils", 65 "hilog:libhilog", 66 "init:libbegetutil", 67 "ipc:ipc_core", 68 "safwk:system_ability_fwk", 69 "samgr:samgr_proxy", 70 "storage_service:storage_manager_sa_proxy", 71 ] 72 73 use_exceptions = true 74 part_name = "app_file_service" 75 subsystem_name = "filemanagement" 76} 77