1# Copyright (c) 2021 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") 15 16common_src = [ 17 "common/napi/n_class.cpp", 18 "common/napi/n_func_arg.cpp", 19 "common/napi/n_val.cpp", 20 "common/uni_error.cpp", 21 "common/ability_helper.cpp", 22 "common/common_func.cpp", 23] 24 25ohos_shared_library("fileshare") { 26 relative_install_dir = "module" 27 subsystem_name = "distributeddatamgr" 28 part_name = "storage_standard" 29 30 include_dirs = [ 31 "//third_party/node/src", 32 "//foundation/ace/napi/interfaces/kits", 33 "//utils/native/base/include", 34 "//foundation/distributeddatamgr/distributedfile/storage/diskmgr/frameworks/file_manager_service/include", 35 ] 36 37 sources = common_src 38 sources += [ 39 "file_share_ability/file_share_exporter.cpp", 40 "file_share_ability/module.cpp", 41 ] 42 43 deps = [ 44 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 45 "//foundation/ace/napi:ace_napi", 46 "//foundation/distributeddatamgr/distributedfile/storage/diskmgr/frameworks/file_manager_service:file_share_ability", 47 "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri", 48 "//utils/native/base:utilsecurec", 49 ] 50 51 external_deps = [ 52 "aafwk_standard:ability_manager", 53 "aafwk_standard:want", 54 "appexecfwk_standard:appexecfwk_base", 55 "appexecfwk_standard:appexecfwk_core", 56 "hiviewdfx_hilog_native:libhilog", 57 "ipc:ipc_core", 58 ] 59} 60 61group("build_kits_napi") { 62 deps = [ ":fileshare" ] 63} 64