• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  branch_protector_ret = "pac_ret"
19
20  sanitize = {
21    integer_overflow = true
22    ubsan = true
23    boundary_sanitize = true
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28
29  sources = [
30    "src/module_app_gallery/app_gallery_dispose_proxy.cpp",
31    "src/module_app_gallery/app_gallery_service_connection.cpp",
32    "src/module_external/bms_adapter.cpp",
33    "src/module_external/sms_adapter.cpp",
34    "src/module_ipc/sa_backup_connection.cpp",
35    "src/module_ipc/service.cpp",
36    "src/module_ipc/service_incremental.cpp",
37    "src/module_ipc/service_incremental_reverse_proxy.cpp",
38    "src/module_ipc/service_reverse_proxy.cpp",
39    "src/module_ipc/service_stub.cpp",
40    "src/module_ipc/sub_service.cpp",
41    "src/module_ipc/svc_backup_connection.cpp",
42    "src/module_ipc/svc_extension_incremental_proxy.cpp",
43    "src/module_ipc/svc_extension_proxy.cpp",
44    "src/module_ipc/svc_restore_deps_manager.cpp",
45    "src/module_ipc/svc_session_manager.cpp",
46    "src/module_notify/notify_work_service.cpp",
47    "src/module_sched/sched_scheduler.cpp",
48  ]
49
50  defines = [
51    "LOG_DOMAIN=0xD004303",
52    "LOG_TAG=\"BackupSA\"",
53  ]
54
55  include_dirs = [
56    "include",
57    "include/module_notify",
58  ]
59
60  deps = [
61    "${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner",
62    "${path_backup}/utils:backup_utils",
63    "${path_jsoncpp}:jsoncpp",
64  ]
65
66  external_deps = [
67    "ability_base:want",
68    "ability_runtime:ability_connect_callback_stub",
69    "ability_runtime:ability_manager",
70    "access_token:libaccesstoken_sdk",
71    "access_token:libtokenid_sdk",
72    "bundle_framework:appexecfwk_base",
73    "bundle_framework:appexecfwk_core",
74    "c_utils:utils",
75    "common_event_service:cesfwk_innerkits",
76    "hilog:libhilog",
77    "hisysevent:libhisysevent",
78    "hitrace:hitrace_meter",
79    "init:libbegetutil",
80    "ipc:ipc_core",
81    "safwk:system_ability_fwk",
82    "samgr:samgr_proxy",
83    "storage_service:storage_manager_sa_proxy",
84  ]
85
86  cflags_cc = [
87    "-fdata-sections",
88    "-ffunction-sections",
89    "-fno-unwind-tables",
90    "-fno-asynchronous-unwind-tables",
91    "-Os",
92  ]
93
94  use_exceptions = true
95  part_name = "app_file_service"
96  subsystem_name = "filemanagement"
97}
98