1# Copyright (C) 2021-2025 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 17group("services_target") { 18 deps = [ 19 "${services_path}:cloudsyncservice.para", 20 "${services_path}:cloudsyncservice.para.dac", 21 "${services_path}:distributed_file.para", 22 "${services_path}:distributedfile_etc", 23 "${services_path}:distributedfile_sa_profile", 24 "${services_path}/clouddisk_database:clouddisk_database", 25 "${services_path}/cloudfiledaemon:cloudfiledaemon", 26 "${services_path}/cloudsyncservice:cloudsync_sa", 27 ] 28 29 if (dfs_service_feature_enable_dist_file_daemon) { 30 deps += 31 [ "${services_path}/distributedfiledaemon:libdistributedfiledaemon" ] 32 } 33 if (dfs_service_feature_enable_cloud_adapter) { 34 deps += [ "${services_path}:cloudfiledaemon_etc" ] 35 } 36} 37 38group("cloudsync_kit_inner_target") { 39 deps = 40 [ "interfaces/inner_api/native/cloudsync_kit_inner:cloudsync_kit_inner" ] 41} 42 43group("cloud_daemon_kit_inner_target") { 44 deps = [ 45 "interfaces/inner_api/native/cloud_daemon_kit_inner:cloud_daemon_kit_inner", 46 ] 47} 48 49group("cloud_file_kit_inner_target") { 50 deps = [ "interfaces/inner_api/native/cloud_file_kit_inner:cloudfile_kit" ] 51} 52 53group("cloudsync_asset_kit_inner_target") { 54 deps = [ 55 "interfaces/inner_api/native/cloudsync_kit_inner:cloudsync_asset_kit_inner", 56 ] 57} 58 59group("distributed_file_daemon_kit_inner_target") { 60 deps = [ "services/distributedfiledaemon:distributed_file_daemon_kit_inner" ] 61} 62 63group("dfs_test_moudule") { 64 testonly = true 65 deps = [ 66 "${services_path}/distributedfiledaemon/test/unittest:unittest", 67 "${services_path}/distributedfiledaemon/test/unittest/all_connect:all_connect_manager_test", 68 "${services_path}/distributedfiledaemon/test/unittest/connect_count:connect_count_test", 69 "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_callback_manager_test", 70 "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_recv_callback_proxy_test", 71 "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_send_callback_proxy_test", 72 "${services_path}/distributedfiledaemon/test/unittest/ipc/daemon:daemon_test", 73 "${services_path}/distributedfiledaemon/test/unittest/ipc/daemon_execute:daemon_execute_test", 74 "${services_path}/distributedfiledaemon/test/unittest/mountpoint:mount_manager_test", 75 "${services_path}/distributedfiledaemon/test/unittest/mountpoint:mount_point_test", 76 "test/moduletest:DistributedFileDaemonServiceTest", 77 ] 78 79 if (support_device_profile) { 80 deps += 81 [ "${services_path}/distributedfiledaemon/test/unittest/device/device_profile_adapter:device_profile_adapter_test" ] 82 } 83} 84 85group("cloudsync_test_module") { 86 testonly = true 87 deps = [ "test/unittests:cloudsyncunittests" ] 88} 89 90group("distributedfile_test_module") { 91 testonly = true 92 deps = [ "test/unittests:distributedfileunittests" ] 93} 94