1# Copyright (C) 2021-2024 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    "${services_path}/distributedfiledaemon:libdistributedfiledaemon",
28  ]
29}
30
31group("cloudsync_kit_inner_target") {
32  deps =
33      [ "interfaces/inner_api/native/cloudsync_kit_inner:cloudsync_kit_inner" ]
34}
35
36group("cloud_daemon_kit_inner_target") {
37  deps = [
38    "interfaces/inner_api/native/cloud_daemon_kit_inner:cloud_daemon_kit_inner",
39  ]
40}
41
42group("cloud_file_kit_inner_target") {
43  deps = [ "interfaces/inner_api/native/cloud_file_kit_inner:cloudfile_kit" ]
44}
45
46group("cloudsync_asset_kit_inner_target") {
47  deps = [
48    "interfaces/inner_api/native/cloudsync_kit_inner:cloudsync_asset_kit_inner",
49  ]
50}
51
52group("distributed_file_daemon_kit_inner_target") {
53  deps = [ "services/distributedfiledaemon:distributed_file_daemon_kit_inner" ]
54}
55
56group("dfs_test_moudule") {
57  testonly = true
58  deps = [
59    "${services_path}/distributedfiledaemon/test/unittest:device_info_test",
60    "${services_path}/distributedfiledaemon/test/unittest:device_manager_agent_sup_test",
61    "${services_path}/distributedfiledaemon/test/unittest:device_manager_agent_test",
62    "${services_path}/distributedfiledaemon/test/unittest:devsl_dispatcher_test",
63    "${services_path}/distributedfiledaemon/test/unittest:kernel_talker_test",
64    "${services_path}/distributedfiledaemon/test/unittest:os_account_observer_test",
65    "${services_path}/distributedfiledaemon/test/unittest:softbus_agent_test",
66    "${services_path}/distributedfiledaemon/test/unittest:softbus_asset_recv_listener_test",
67    "${services_path}/distributedfiledaemon/test/unittest:softbus_asset_send_listener_test",
68    "${services_path}/distributedfiledaemon/test/unittest:softbus_file_receive_listener_test",
69    "${services_path}/distributedfiledaemon/test/unittest:softbus_file_send_listener_test",
70    "${services_path}/distributedfiledaemon/test/unittest:softbus_handler_asset_test",
71    "${services_path}/distributedfiledaemon/test/unittest:softbus_handler_test",
72    "${services_path}/distributedfiledaemon/test/unittest:softbus_session_dispatcher_test",
73    "${services_path}/distributedfiledaemon/test/unittest:softbus_session_listener_test",
74    "${services_path}/distributedfiledaemon/test/unittest:softbus_session_pool_test",
75    "${services_path}/distributedfiledaemon/test/unittest:softbus_session_test",
76    "${services_path}/distributedfiledaemon/test/unittest/all_connect:all_connect_manager_test",
77    "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_callback_manager_test",
78    "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_recv_callback_proxy_test",
79    "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_send_callback_proxy_test",
80    "${services_path}/distributedfiledaemon/test/unittest/mountpoint:mount_manager_test",
81    "${services_path}/distributedfiledaemon/test/unittest/mountpoint:mount_point_test",
82    "test/moduletest:DistributedFileDaemonServiceTest",
83  ]
84}
85
86group("cloudsync_test_module") {
87  testonly = true
88  deps = [ "test/unittests:cloudsyncunittests" ]
89}
90
91group("distributedfile_test_module") {
92  testonly = true
93  deps = [ "test/unittests:distributedfileunittests" ]
94}
95