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 16ohos_shared_library("remotefileshare") { 17 include_dirs = [ 18 "//foundation/arkui/napi/interfaces/kits", 19 "//third_party/bounds_checking_function/include", 20 "//foundation/filemanagement/file_api/utils/filemgmt_libn/include", 21 ] 22 23 sources = [ 24 "remote_file_share/remotefileshare_n_exporter.cpp", 25 "remote_file_share/remotefileshare_napi.cpp", 26 ] 27 28 deps = [ 29 "//foundation/filemanagement/file_api/utils/filemgmt_libn:filemgmt_libn", 30 "//third_party/bounds_checking_function:libsec_shared", 31 ] 32 33 relative_install_dir = "module" 34 35 part_name = "app_file_service" 36 subsystem_name = "filemanagement" 37} 38 39ohos_shared_library("fileshare") { 40 include_dirs = [ 41 "//foundation/filemanagement/app_file_service/interfaces/kits/js", 42 "//foundation/filemanagement/file_api/utils/filemgmt_libn/include", 43 "//foundation/filemanagement/app_file_service/interfaces/kits/js/common", 44 ] 45 46 sources = [ 47 "//foundation/filemanagement/app_file_service/interfaces/kits/js/file_share/fileshare_n_exporter.cpp", 48 "//foundation/filemanagement/app_file_service/interfaces/kits/js/file_share/grant_uri_permission.cpp", 49 ] 50 51 deps = [ 52 "//foundation/filemanagement/file_api/utils/filemgmt_libn:filemgmt_libn", 53 ] 54 55 external_deps = [ 56 "ability_base:want", 57 "ability_base:zuri", 58 "ability_runtime:abilitykit_native", 59 "c_utils:utils", 60 "data_share:datashare_common", 61 "data_share:datashare_consumer", 62 "file_api:remote_uri_native", 63 "hiviewdfx_hilog_native:libhilog", 64 "ipc:ipc_core", 65 ] 66 67 relative_install_dir = "module" 68 69 part_name = "app_file_service" 70 subsystem_name = "filemanagement" 71} 72 73ohos_shared_library("fileuri") { 74 include_dirs = [ 75 "//foundation/filemanagement/app_file_service/interfaces/kits/js", 76 "//foundation/filemanagement/file_api/utils/filemgmt_libn/include", 77 "//foundation/filemanagement/app_file_service/interfaces/kits/js/common", 78 ] 79 80 sources = [ 81 "//foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/file_uri_n_exporter.cpp", 82 "//foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/get_uri_from_path.cpp", 83 ] 84 85 deps = [ 86 "//foundation/filemanagement/file_api/utils/filemgmt_libn:filemgmt_libn", 87 ] 88 89 external_deps = [ 90 "ability_runtime:abilitykit_native", 91 "bundle_framework:appexecfwk_core", 92 "c_utils:utils", 93 "hiviewdfx_hilog_native:libhilog", 94 "ipc:ipc_core", 95 "samgr:samgr_proxy", 96 ] 97 98 relative_install_dir = "module/file" 99 100 part_name = "app_file_service" 101 subsystem_name = "filemanagement" 102} 103