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_extension_ability_native") { 18 sources = [ 19 "src/ext_backup.cpp", 20 "src/ext_backup_js.cpp", 21 "src/ext_backup_loader.cpp", 22 "src/ext_extension.cpp", 23 "src/ext_extension_stub.cpp", 24 ] 25 26 defines = [ 27 "LOG_DOMAIN=0xD004301", 28 "LOG_TAG=\"BackupExt\"", 29 ] 30 31 include_dirs = [ 32 "include", 33 "${path_napi}/native_engine", 34 "${path_ability_runtime}/services/common/include", 35 "${path_ability_runtime}/interfaces/kits/napi/aafwk/inner/napi_common", 36 "${path_ability_runtime}/interfaces/kits/native/appkit/ability_runtime", 37 ] 38 39 deps = [ 40 "${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner", 41 "${path_backup}/utils:backup_utils", 42 "${path_jsoncpp}:jsoncpp", 43 ] 44 45 external_deps = [ 46 "ability_base:want", 47 "ability_runtime:ability_context_native", 48 "ability_runtime:abilitykit_native", 49 "ability_runtime:app_context", 50 "ability_runtime:appkit_native", 51 "ability_runtime:runtime", 52 "access_token:libaccesstoken_sdk", 53 "bundle_framework:appexecfwk_core", 54 "c_utils:utils", 55 "hilog:libhilog", 56 "ipc:ipc_core", 57 "napi:ace_napi", 58 ] 59 60 use_exceptions = true 61 relative_install_dir = "extensionability" 62 part_name = "app_file_service" 63 subsystem_name = "filemanagement" 64} 65