• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:device_info_test",
67    "${services_path}/distributedfiledaemon/test/unittest:device_manager_agent_sup_test",
68    "${services_path}/distributedfiledaemon/test/unittest:device_manager_agent_test",
69    "${services_path}/distributedfiledaemon/test/unittest:devsl_dispatcher_test",
70    "${services_path}/distributedfiledaemon/test/unittest:kernel_talker_test",
71    "${services_path}/distributedfiledaemon/test/unittest:os_account_observer_test",
72    "${services_path}/distributedfiledaemon/test/unittest:softbus_agent_sup_test",
73    "${services_path}/distributedfiledaemon/test/unittest:softbus_agent_test",
74    "${services_path}/distributedfiledaemon/test/unittest:softbus_asset_recv_listener_test",
75    "${services_path}/distributedfiledaemon/test/unittest:softbus_asset_send_listener_test",
76    "${services_path}/distributedfiledaemon/test/unittest:softbus_file_receive_listener_test",
77    "${services_path}/distributedfiledaemon/test/unittest:softbus_file_send_listener_test",
78    "${services_path}/distributedfiledaemon/test/unittest:softbus_handler_asset_test",
79    "${services_path}/distributedfiledaemon/test/unittest:softbus_handler_test",
80    "${services_path}/distributedfiledaemon/test/unittest:softbus_session_dispatcher_test",
81    "${services_path}/distributedfiledaemon/test/unittest:softbus_session_listener_test",
82    "${services_path}/distributedfiledaemon/test/unittest:softbus_session_pool_test",
83    "${services_path}/distributedfiledaemon/test/unittest:softbus_session_test",
84    "${services_path}/distributedfiledaemon/test/unittest/all_connect:all_connect_manager_test",
85    "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_callback_manager_test",
86    "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_recv_callback_proxy_test",
87    "${services_path}/distributedfiledaemon/test/unittest/ipc:asset_send_callback_proxy_test",
88    "${services_path}/distributedfiledaemon/test/unittest/ipc/daemon:daemon_test",
89    "${services_path}/distributedfiledaemon/test/unittest/ipc/daemon_execute:daemon_execute_test",
90    "${services_path}/distributedfiledaemon/test/unittest/mountpoint:mount_manager_test",
91    "${services_path}/distributedfiledaemon/test/unittest/mountpoint:mount_point_test",
92    "test/moduletest:DistributedFileDaemonServiceTest",
93  ]
94}
95
96group("cloudsync_test_module") {
97  testonly = true
98  deps = [ "test/unittests:cloudsyncunittests" ]
99}
100
101group("distributedfile_test_module") {
102  testonly = true
103  deps = [ "test/unittests:distributedfileunittests" ]
104}
105