140f5d65dSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 240f5d65dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 340f5d65dSopenharmony_ci# you may not use this file except in compliance with the License. 440f5d65dSopenharmony_ci# You may obtain a copy of the License at 540f5d65dSopenharmony_ci# 640f5d65dSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 740f5d65dSopenharmony_ci# 840f5d65dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 940f5d65dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1040f5d65dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1140f5d65dSopenharmony_ci# See the License for the specific language governing permissions and 1240f5d65dSopenharmony_ci# limitations under the License. 1340f5d65dSopenharmony_ci 1440f5d65dSopenharmony_ciimport("//build/ohos.gni") 1540f5d65dSopenharmony_ciimport("//build/ohos/ndk/ndk.gni") 1640f5d65dSopenharmony_ci 1740f5d65dSopenharmony_ciohos_ndk_library("libohfileshare") { 1840f5d65dSopenharmony_ci ndk_description_file = "./libfile_share.ndk.json" 1940f5d65dSopenharmony_ci min_compact_version = "12" 2040f5d65dSopenharmony_ci output_name = "ohfileshare" 2140f5d65dSopenharmony_ci output_extension = "so" 2240f5d65dSopenharmony_ci system_capability = 2340f5d65dSopenharmony_ci "SystemCapability.FileManagement.AppFileService.FolderAuthorization" 2440f5d65dSopenharmony_ci system_capability_headers = 2540f5d65dSopenharmony_ci [ "$ndk_headers_out_dir/filemanagement/fileshare/oh_file_share.h" ] 2640f5d65dSopenharmony_ci} 2740f5d65dSopenharmony_ci 2840f5d65dSopenharmony_ciohos_ndk_headers("oh_file_share_header") { 2940f5d65dSopenharmony_ci dest_dir = "$ndk_headers_out_dir/filemanagement/fileshare/" 3040f5d65dSopenharmony_ci sources = [ 3140f5d65dSopenharmony_ci "../fileio/include/error_code.h", 3240f5d65dSopenharmony_ci "./include/oh_file_share.h", 3340f5d65dSopenharmony_ci ] 3440f5d65dSopenharmony_ci} 35