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") 15FMS_BASE_DIR = "//foundation/filemanagement/user_file_service/services" 16 17ohos_shared_library("filemanager") { 18 subsystem_name = "filemanagement" 19 part_name = "user_file_service" 20 21 relative_install_dir = "module" 22 23 include_dirs = [ 24 "//third_party/node/src", 25 "//foundation/ace/napi/interfaces/kits", 26 "//utils/native/base/include", 27 "//third_party/libuv/include", 28 "$FMS_BASE_DIR/include", 29 "$FMS_BASE_DIR/src/client", 30 "$FMS_BASE_DIR/src/server", 31 "$FMS_BASE_DIR/src/fileoper", 32 "//foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/common/napi/n_async", 33 "//foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/common/napi", 34 "//foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/common", 35 "//foundation/multimedia/medialibrary_standard/interfaces/innerkits/native/include", 36 ] 37 38 sources = [ 39 "src/file_manager_napi.cpp", 40 "src/module.cpp", 41 ] 42 43 deps = [ 44 "$FMS_BASE_DIR:fms_server", 45 "//foundation/ace/napi:ace_napi", 46 "//foundation/distributeddatamgr/distributedfile/interfaces/kits/js:fileio", 47 "//foundation/multimedia/medialibrary_standard/frameworks/innerkitsimpl/medialibrary_data_ability:medialibrary_data_ability", 48 "//utils/native/base:utils", 49 ] 50 cflags = [] 51 if (target_cpu == "arm") { 52 cflags += [ "-DBINDER_IPC_32BIT" ] 53 } 54 external_deps = [ 55 "hiviewdfx_hilog_native:libhilog", 56 "ipc:ipc_core", 57 "safwk:system_ability_fwk", 58 "samgr_standard:samgr_proxy", 59 ] 60} 61