1# Copyright (C) 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/dfs_service/distributedfile.gni") 16 17ohos_shared_library("cloudfiledaemon") { 18 sources = [ 19 "src/fuse_manager/fuse_manager.cpp", 20 "src/ipc/cloud_daemon.cpp", 21 "src/ipc/cloud_daemon_stub.cpp", 22 ] 23 24 configs = [ "${utils_path}:compiler_configs" ] 25 26 defines = [ "LOG_TAG=\"CloudFileDaemon\"" ] 27 28 include_dirs = [ 29 "include", 30 "//third_party/libfuse/include", 31 "//third_party/libfuse/lib", 32 "${innerkits_native_path}/cloud_daemon_kit_inner", 33 "${services_path}/cloudsyncservice/include/data_sync/", 34 ] 35 36 deps = [ 37 "${utils_path}:libdistributedfiledentry", 38 "${utils_path}:libdistributedfileutils", 39 "//third_party/libfuse:libfuse", 40 ] 41 42 external_deps = [ 43 "hilog:libhilog", 44 "ipc:ipc_single", 45 "safwk:system_ability_fwk", 46 "samgr:samgr_proxy", 47 ] 48 49 if (!dfs_service_feature_enable_cloud_adapter) { 50 deps += [ 51 "${distributedfile_path}/adapter/cloud_adapter_example:cloud_adapter", 52 ] 53 } else { 54 external_deps += [ "drivekit_native:drivekit" ] 55 } 56 57 use_exceptions = true 58 part_name = "dfs_service" 59 subsystem_name = "filemanagement" 60} 61