1# Copyright (c) 2022-2023 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 sources = [ 19 "src/module_external/bms_adapter.cpp", 20 "src/module_external/inner_receiver_impl.cpp", 21 "src/module_external/sms_adapter.cpp", 22 "src/module_ipc/service.cpp", 23 "src/module_ipc/service_reverse_proxy.cpp", 24 "src/module_ipc/service_stub.cpp", 25 "src/module_ipc/svc_backup_connection.cpp", 26 "src/module_ipc/svc_extension_proxy.cpp", 27 "src/module_ipc/svc_session_manager.cpp", 28 "src/module_sched/sched_scheduler.cpp", 29 ] 30 31 defines = [ 32 "LOG_DOMAIN=0xD004303", 33 "LOG_TAG=\"BackupSA\"", 34 ] 35 36 include_dirs = [ "include" ] 37 38 deps = [ 39 "${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner", 40 "${path_backup}/utils:backup_utils", 41 "${path_jsoncpp}:jsoncpp", 42 ] 43 44 external_deps = [ 45 "ability_base:want", 46 "ability_runtime:ability_manager", 47 "access_token:libaccesstoken_sdk", 48 "bundle_framework:appexecfwk_base", 49 "bundle_framework:appexecfwk_core", 50 "c_utils:utils", 51 "hilog:libhilog", 52 "init:libbegetutil", 53 "ipc:ipc_core", 54 "safwk:system_ability_fwk", 55 "samgr:samgr_proxy", 56 "storage_service:storage_manager_sa_proxy", 57 ] 58 59 use_exceptions = true 60 part_name = "app_file_service" 61 subsystem_name = "filemanagement" 62} 63