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
14distributeddb_path =
15    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb"
16
17distributeddb_src = [
18  "${distributeddb_path}/common/src/auto_launch.cpp",
19  "${distributeddb_path}/common/src/cloud/asset_operation_utils.cpp",
20  "${distributeddb_path}/common/src/concurrent_adapter.cpp",
21  "${distributeddb_path}/common/src/data_compression.cpp",
22  "${distributeddb_path}/common/src/data_value.cpp",
23  "${distributeddb_path}/common/src/db_common.cpp",
24  "${distributeddb_path}/common/src/db_base64_utils.cpp",
25  "${distributeddb_path}/common/src/db_constant.cpp",
26  "${distributeddb_path}/common/src/db_dfx_adapter.cpp",
27  "${distributeddb_path}/common/src/db_dump_helper.cpp",
28  "${distributeddb_path}/common/src/evloop/src/event_impl.cpp",
29  "${distributeddb_path}/common/src/evloop/src/event_loop_epoll.cpp",
30  "${distributeddb_path}/common/src/evloop/src/event_loop_impl.cpp",
31  "${distributeddb_path}/common/src/evloop/src/event_loop_select.cpp",
32  "${distributeddb_path}/common/src/evloop/src/ievent.cpp",
33  "${distributeddb_path}/common/src/evloop/src/ievent_loop.cpp",
34  "${distributeddb_path}/common/src/flatbuffer_schema.cpp",
35  "${distributeddb_path}/common/src/hash.cpp",
36  "${distributeddb_path}/common/src/json_object.cpp",
37  "${distributeddb_path}/common/src/lock_status_observer.cpp",
38  "${distributeddb_path}/common/src/log_print.cpp",
39  "${distributeddb_path}/common/src/notification_chain.cpp",
40  "${distributeddb_path}/common/src/param_check_utils.cpp",
41  "${distributeddb_path}/common/src/parcel.cpp",
42  "${distributeddb_path}/common/src/performance_analysis.cpp",
43  "${distributeddb_path}/common/src/platform_specific.cpp",
44  "${distributeddb_path}/common/src/query.cpp",
45  "${distributeddb_path}/common/src/query_expression.cpp",
46  "${distributeddb_path}/common/src/query_utils.cpp",
47  "${distributeddb_path}/common/src/ref_object.cpp",
48  "${distributeddb_path}/common/src/relational/prepared_stmt.cpp",
49  "${distributeddb_path}/common/src/relational/relational_result_set_impl.cpp",
50  "${distributeddb_path}/common/src/relational/relational_row_data_set.cpp",
51  "${distributeddb_path}/common/src/relational/relational_schema_object.cpp",
52  "${distributeddb_path}/common/src/relational/table_info.cpp",
53  "${distributeddb_path}/common/src/relational/tracker_table.cpp",
54  "${distributeddb_path}/common/src/runtime_context.cpp",
55  "${distributeddb_path}/common/src/runtime_context_impl.cpp",
56  "${distributeddb_path}/common/src/schema_constant.cpp",
57  "${distributeddb_path}/common/src/schema_negotiate.cpp",
58  "${distributeddb_path}/common/src/schema_object.cpp",
59  "${distributeddb_path}/common/src/schema_utils.cpp",
60  "${distributeddb_path}/common/src/semaphore_utils.cpp",
61  "${distributeddb_path}/common/src/task_pool.cpp",
62  "${distributeddb_path}/common/src/task_pool_impl.cpp",
63  "${distributeddb_path}/common/src/task_queue.cpp",
64  "${distributeddb_path}/common/src/time_tick_monitor.cpp",
65  "${distributeddb_path}/common/src/types_export.cpp",
66  "${distributeddb_path}/common/src/user_change_monitor.cpp",
67  "${distributeddb_path}/common/src/value_object.cpp",
68  "${distributeddb_path}/common/src/zlib_compression.cpp",
69  "${distributeddb_path}/communicator/src/combine_status.cpp",
70  "${distributeddb_path}/communicator/src/communicator.cpp",
71  "${distributeddb_path}/communicator/src/communicator_aggregator.cpp",
72  "${distributeddb_path}/communicator/src/communicator_linker.cpp",
73  "${distributeddb_path}/communicator/src/db_status_adapter.cpp",
74  "${distributeddb_path}/communicator/src/frame_combiner.cpp",
75  "${distributeddb_path}/communicator/src/frame_retainer.cpp",
76  "${distributeddb_path}/communicator/src/header_converter.cpp",
77  "${distributeddb_path}/communicator/src/message_transform.cpp",
78  "${distributeddb_path}/communicator/src/network_adapter.cpp",
79  "${distributeddb_path}/communicator/src/protocol_proto.cpp",
80  "${distributeddb_path}/communicator/src/send_task_scheduler.cpp",
81  "${distributeddb_path}/communicator/src/serial_buffer.cpp",
82  "${distributeddb_path}/interfaces/src/intercepted_data_impl.cpp",
83  "${distributeddb_path}/interfaces/src/kv_store_changed_data_impl.cpp",
84  "${distributeddb_path}/interfaces/src/kv_store_delegate_impl.cpp",
85  "${distributeddb_path}/interfaces/src/kv_store_delegate_manager.cpp",
86  "${distributeddb_path}/interfaces/src/kv_store_errno.cpp",
87  "${distributeddb_path}/interfaces/src/kv_store_nb_conflict_data_impl.cpp",
88  "${distributeddb_path}/interfaces/src/kv_store_nb_delegate_impl.cpp",
89  "${distributeddb_path}/interfaces/src/kv_store_result_set_impl.cpp",
90  "${distributeddb_path}/interfaces/src/kv_store_snapshot_delegate_impl.cpp",
91  "${distributeddb_path}/interfaces/src/relational/relational_store_changed_data_impl.cpp",
92  "${distributeddb_path}/interfaces/src/relational/relational_store_delegate_impl.cpp",
93  "${distributeddb_path}/interfaces/src/relational/relational_store_manager.cpp",
94  "${distributeddb_path}/interfaces/src/relational/relational_store_sqlite_ext.cpp",
95  "${distributeddb_path}/interfaces/src/runtime_config.cpp",
96  "${distributeddb_path}/storage/src/cloud/cloud_meta_data.cpp",
97  "${distributeddb_path}/storage/src/cloud/cloud_storage_utils.cpp",
98  "${distributeddb_path}/storage/src/cloud/cloud_upload_recorder.cpp",
99  "${distributeddb_path}/storage/src/cloud/schema_mgr.cpp",
100  "${distributeddb_path}/storage/src/data_transformer.cpp",
101  "${distributeddb_path}/storage/src/db_properties.cpp",
102  "${distributeddb_path}/storage/src/default_factory.cpp",
103  "${distributeddb_path}/storage/src/single_ver_utils.cpp",
104  "${distributeddb_path}/storage/src/gaussdb_rd/rd_single_ver_result_set.cpp",
105  "${distributeddb_path}/storage/src/gaussdb_rd/rd_single_ver_natural_store_connection.cpp",
106  "${distributeddb_path}/storage/src/gaussdb_rd/rd_single_ver_natural_store.cpp",
107  "${distributeddb_path}/storage/src/gaussdb_rd/rd_utils.cpp",
108  "${distributeddb_path}/storage/src/gaussdb_rd/rd_single_ver_storage_executor.cpp",
109  "${distributeddb_path}/storage/src/gaussdb_rd/rd_single_ver_storage_engine.cpp",
110  "${distributeddb_path}/storage/src/iconnection.cpp",
111  "${distributeddb_path}/storage/src/ikvdb_factory.cpp",
112  "${distributeddb_path}/storage/src/kv/generic_kvdb.cpp",
113  "${distributeddb_path}/storage/src/kv/generic_kvdb_connection.cpp",
114  "${distributeddb_path}/storage/src/kv/generic_single_ver_kv_entry.cpp",
115  "${distributeddb_path}/storage/src/kv/kvdb_commit_notify_filterable_data.cpp",
116  "${distributeddb_path}/storage/src/kv/kvdb_manager.cpp",
117  "${distributeddb_path}/storage/src/kv/kvdb_observer_handle.cpp",
118  "${distributeddb_path}/storage/src/kv/kvdb_properties.cpp",
119  "${distributeddb_path}/storage/src/kv/kvdb_utils.cpp",
120  "${distributeddb_path}/storage/src/kv/kvdb_windowed_result_set.cpp",
121  "${distributeddb_path}/storage/src/kv/sync_able_kvdb.cpp",
122  "${distributeddb_path}/storage/src/kv/sync_able_kvdb_connection.cpp",
123  "${distributeddb_path}/storage/src/multiver/generic_multi_ver_kv_entry.cpp",
124  "${distributeddb_path}/storage/src/multiver/multi_ver_commit.cpp",
125  "${distributeddb_path}/storage/src/multiver/multi_ver_kvdata_storage.cpp",
126  "${distributeddb_path}/storage/src/multiver/multi_ver_natural_store.cpp",
127  "${distributeddb_path}/storage/src/multiver/multi_ver_natural_store_commit_notify_data.cpp",
128  "${distributeddb_path}/storage/src/multiver/multi_ver_natural_store_commit_storage.cpp",
129  "${distributeddb_path}/storage/src/multiver/multi_ver_natural_store_connection.cpp",
130  "${distributeddb_path}/storage/src/multiver/multi_ver_natural_store_snapshot.cpp",
131  "${distributeddb_path}/storage/src/multiver/multi_ver_natural_store_transfer_data.cpp",
132  "${distributeddb_path}/storage/src/multiver/multi_ver_storage_engine.cpp",
133  "${distributeddb_path}/storage/src/multiver/multi_ver_storage_executor.cpp",
134  "${distributeddb_path}/storage/src/multiver/multi_ver_vacuum.cpp",
135  "${distributeddb_path}/storage/src/multiver/multi_ver_vacuum_executor_impl.cpp",
136  "${distributeddb_path}/storage/src/multiver/multi_ver_value_object.cpp",
137  "${distributeddb_path}/storage/src/operation/database_oper.cpp",
138  "${distributeddb_path}/storage/src/operation/local_database_oper.cpp",
139  "${distributeddb_path}/storage/src/operation/multi_ver_database_oper.cpp",
140  "${distributeddb_path}/storage/src/operation/single_ver_database_oper.cpp",
141  "${distributeddb_path}/storage/src/package_file.cpp",
142  "${distributeddb_path}/storage/src/relational/relational_row_data_impl.cpp",
143  "${distributeddb_path}/storage/src/relational/relational_store_connection.cpp",
144  "${distributeddb_path}/storage/src/relational/relational_store_instance.cpp",
145  "${distributeddb_path}/storage/src/relational/relational_sync_able_storage.cpp",
146  "${distributeddb_path}/storage/src/relational/relational_sync_data_inserter.cpp",
147  "${distributeddb_path}/storage/src/relational/relationaldb_properties.cpp",
148  "${distributeddb_path}/storage/src/result_entries_window.cpp",
149  "${distributeddb_path}/storage/src/single_ver_natural_store.cpp",
150  "${distributeddb_path}/storage/src/single_ver_natural_store_connection.cpp",
151  "${distributeddb_path}/storage/src/single_ver_natural_store_commit_notify_data.cpp",
152  "${distributeddb_path}/storage/src/sqlite/kv/sqlite_local_kvdb.cpp",
153  "${distributeddb_path}/storage/src/sqlite/kv/sqlite_local_kvdb_connection.cpp",
154  "${distributeddb_path}/storage/src/sqlite/kv/sqlite_local_kvdb_snapshot.cpp",
155  "${distributeddb_path}/storage/src/sqlite/query_object.cpp",
156  "${distributeddb_path}/storage/src/sqlite/query_sync_object.cpp",
157  "${distributeddb_path}/storage/src/sqlite/relational/cloud_sync_log_table_manager.cpp",
158  "${distributeddb_path}/storage/src/sqlite/relational/collaboration_log_table_manager.cpp",
159  "${distributeddb_path}/storage/src/sqlite/relational/log_table_manager_factory.cpp",
160  "${distributeddb_path}/storage/src/sqlite/relational/relational_remote_query_continue_token.cpp",
161  "${distributeddb_path}/storage/src/sqlite/relational/simple_tracker_log_table_manager.cpp",
162  "${distributeddb_path}/storage/src/sqlite/relational/split_device_log_table_manager.cpp",
163  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_relational_database_upgrader.cpp",
164  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_relational_store.cpp",
165  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_relational_store_connection.cpp",
166  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_relational_utils.cpp",
167  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_single_relational_storage_engine.cpp",
168  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_single_ver_relational_continue_token.cpp",
169  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_single_ver_relational_storage_executor.cpp",
170  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_single_ver_relational_storage_executor_extend.cpp",
171  "${distributeddb_path}/storage/src/sqlite/relational/sqlite_single_ver_relational_storage_extend_executor.cpp",
172  "${distributeddb_path}/storage/src/sqlite/sqlite_cloud_kv_executor_utils.cpp",
173  "${distributeddb_path}/storage/src/sqlite/sqlite_cloud_kv_store.cpp",
174  "${distributeddb_path}/storage/src/sqlite/sqlite_local_storage_engine.cpp",
175  "${distributeddb_path}/storage/src/sqlite/sqlite_local_storage_executor.cpp",
176  "${distributeddb_path}/storage/src/sqlite/sqlite_log_table_manager.cpp",
177  "${distributeddb_path}/storage/src/sqlite/sqlite_meta_executor.cpp",
178  "${distributeddb_path}/storage/src/sqlite/sqlite_multi_ver_data_storage.cpp",
179  "${distributeddb_path}/storage/src/sqlite/sqlite_multi_ver_transaction.cpp",
180  "${distributeddb_path}/storage/src/sqlite/sqlite_query_helper.cpp",
181  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_continue_token.cpp",
182  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_database_upgrader.cpp",
183  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_forward_cursor.cpp",
184  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_natural_store.cpp",
185  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_natural_store_connection.cpp",
186  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_natural_store_extend.cpp",
187  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_result_set.cpp",
188  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_schema_database_upgrader.cpp",
189  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_storage_engine.cpp",
190  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_storage_executor.cpp",
191  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_storage_executor_extend.cpp",
192  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_storage_executor_cache.cpp",
193  "${distributeddb_path}/storage/src/sqlite/sqlite_single_ver_storage_executor_subscribe.cpp",
194  "${distributeddb_path}/storage/src/sqlite/sqlite_storage_engine.cpp",
195  "${distributeddb_path}/storage/src/sqlite/sqlite_storage_executor.cpp",
196  "${distributeddb_path}/storage/src/sqlite/sqlite_utils.cpp",
197  "${distributeddb_path}/storage/src/storage_engine.cpp",
198  "${distributeddb_path}/storage/src/storage_engine_manager.cpp",
199  "${distributeddb_path}/storage/src/storage_executor.cpp",
200  "${distributeddb_path}/storage/src/storage_proxy.cpp",
201  "${distributeddb_path}/storage/src/sync_able_engine.cpp",
202  "${distributeddb_path}/storage/src/upgrader/single_ver_database_upgrader.cpp",
203  "${distributeddb_path}/storage/src/upgrader/single_ver_schema_database_upgrader.cpp",
204  "${distributeddb_path}/syncer/src/cloud/cloud_force_pull_strategy.cpp",
205  "${distributeddb_path}/syncer/src/cloud/cloud_force_push_strategy.cpp",
206  "${distributeddb_path}/syncer/src/cloud/cloud_merge_strategy.cpp",
207  "${distributeddb_path}/syncer/src/cloud/cloud_sync_strategy.cpp",
208  "${distributeddb_path}/syncer/src/cloud/cloud_db_proxy.cpp",
209  "${distributeddb_path}/syncer/src/cloud/cloud_locker.cpp",
210  "${distributeddb_path}/syncer/src/cloud/cloud_syncer.cpp",
211  "${distributeddb_path}/syncer/src/cloud/cloud_syncer_extend.cpp",
212  "${distributeddb_path}/syncer/src/cloud/cloud_sync_state_machine.cpp",
213  "${distributeddb_path}/syncer/src/cloud/cloud_sync_tag_assets.cpp",
214  "${distributeddb_path}/syncer/src/cloud/cloud_sync_utils.cpp",
215  "${distributeddb_path}/syncer/src/cloud/process_notifier.cpp",
216  "${distributeddb_path}/syncer/src/cloud/process_recorder.cpp",
217  "${distributeddb_path}/syncer/src/cloud/strategy_factory.cpp",
218  "${distributeddb_path}/syncer/src/device/ability_sync.cpp",
219  "${distributeddb_path}/syncer/src/device/commit_history_sync.cpp",
220  "${distributeddb_path}/syncer/src/device/communicator_proxy.cpp",
221  "${distributeddb_path}/syncer/src/device/db_ability.cpp",
222  "${distributeddb_path}/syncer/src/device/device_manager.cpp",
223  "${distributeddb_path}/syncer/src/device/generic_syncer.cpp",
224  "${distributeddb_path}/syncer/src/device/meta_data.cpp",
225  "${distributeddb_path}/syncer/src/device/multiver/multi_ver_data_sync.cpp",
226  "${distributeddb_path}/syncer/src/device/multiver/multi_ver_sync_engine.cpp",
227  "${distributeddb_path}/syncer/src/device/multiver/multi_ver_sync_state_machine.cpp",
228  "${distributeddb_path}/syncer/src/device/multiver/multi_ver_sync_task_context.cpp",
229  "${distributeddb_path}/syncer/src/device/multiver/multi_ver_syncer.cpp",
230  "${distributeddb_path}/syncer/src/device/multiver/value_slice_sync.cpp",
231  "${distributeddb_path}/syncer/src/device/query_sync_water_mark_helper.cpp",
232  "${distributeddb_path}/syncer/src/device/remote_executor.cpp",
233  "${distributeddb_path}/syncer/src/device/remote_executor_packet.cpp",
234  "${distributeddb_path}/syncer/src/device/singlever/single_ver_data_message_schedule.cpp",
235  "${distributeddb_path}/syncer/src/device/singlever/single_ver_data_packet.cpp",
236  "${distributeddb_path}/syncer/src/device/singlever/single_ver_data_sync.cpp",
237  "${distributeddb_path}/syncer/src/device/singlever/single_ver_data_sync_utils.cpp",
238  "${distributeddb_path}/syncer/src/device/singlever/single_ver_kv_sync_task_context.cpp",
239  "${distributeddb_path}/syncer/src/device/singlever/single_ver_kv_syncer.cpp",
240  "${distributeddb_path}/syncer/src/device/singlever/single_ver_relational_sync_task_context.cpp",
241  "${distributeddb_path}/syncer/src/device/singlever/single_ver_relational_syncer.cpp",
242  "${distributeddb_path}/syncer/src/device/singlever/single_ver_serialize_manager.cpp",
243  "${distributeddb_path}/syncer/src/device/singlever/single_ver_sync_engine.cpp",
244  "${distributeddb_path}/syncer/src/device/singlever/single_ver_sync_state_machine.cpp",
245  "${distributeddb_path}/syncer/src/device/singlever/single_ver_sync_target.cpp",
246  "${distributeddb_path}/syncer/src/device/singlever/single_ver_sync_task_context.cpp",
247  "${distributeddb_path}/syncer/src/device/singlever/single_ver_syncer.cpp",
248  "${distributeddb_path}/syncer/src/device/subscribe_manager.cpp",
249  "${distributeddb_path}/syncer/src/device/subscribe_recorder.cpp",
250  "${distributeddb_path}/syncer/src/device/sync_engine.cpp",
251  "${distributeddb_path}/syncer/src/device/sync_state_machine.cpp",
252  "${distributeddb_path}/syncer/src/device/sync_target.cpp",
253  "${distributeddb_path}/syncer/src/device/sync_task_context.cpp",
254  "${distributeddb_path}/syncer/src/device/syncer_factory.cpp",
255  "${distributeddb_path}/syncer/src/device/syncer_proxy.cpp",
256  "${distributeddb_path}/syncer/src/device/time_sync.cpp",
257  "${distributeddb_path}/syncer/src/sync_config.cpp",
258  "${distributeddb_path}/syncer/src/sync_operation.cpp",
259  "${distributeddb_path}/syncer/src/time_helper.cpp",
260]
261
262distributeddb_src_rd = [
263  "${distributeddb_path}/gaussdb_rd/src/common/src/collection_option.cpp",
264  "${distributeddb_path}/gaussdb_rd/src/common/src/db_config.cpp",
265  "${distributeddb_path}/gaussdb_rd/src/common/src/grd_api_manager.cpp",
266  "${distributeddb_path}/gaussdb_rd/src/common/src/json_common.cpp",
267  "${distributeddb_path}/gaussdb_rd/src/common/src/rd_log_print.cpp",
268  "${distributeddb_path}/gaussdb_rd/src/common/src/os_api.cpp",
269  "${distributeddb_path}/gaussdb_rd/src/executor/base/grd_db_api.cpp",
270  "${distributeddb_path}/gaussdb_rd/src/executor/base/grd_db_api_inner.cpp",
271  "${distributeddb_path}/gaussdb_rd/src/executor/document/check_common.cpp",
272  "${distributeddb_path}/gaussdb_rd/src/executor/document/grd_document_api.cpp",
273  "${distributeddb_path}/gaussdb_rd/src/executor/document/grd_document_api_inner.cpp",
274  "${distributeddb_path}/gaussdb_rd/src/executor/document/grd_resultset_api.cpp",
275  "${distributeddb_path}/gaussdb_rd/src/executor/document/grd_resultset_api_inner.cpp",
276  "${distributeddb_path}/gaussdb_rd/src/executor/kv/grd_kv_api.cpp",
277  "${distributeddb_path}/gaussdb_rd/src/executor/kv/grd_kv_api_inner.cpp",
278  "${distributeddb_path}/gaussdb_rd/src/interface/src/collection.cpp",
279  "${distributeddb_path}/gaussdb_rd/src/interface/src/doc_errno.cpp",
280  "${distributeddb_path}/gaussdb_rd/src/interface/src/document_key.cpp",
281  "${distributeddb_path}/gaussdb_rd/src/interface/src/document_store.cpp",
282  "${distributeddb_path}/gaussdb_rd/src/interface/src/document_store_manager.cpp",
283  "${distributeddb_path}/gaussdb_rd/src/interface/src/projection_tree.cpp",
284  "${distributeddb_path}/gaussdb_rd/src/interface/src/result_set.cpp",
285  "${distributeddb_path}/gaussdb_rd/src/interface/src/result_set_common.cpp",
286  "${distributeddb_path}/gaussdb_rd/src/oh_adapter/src/rd_json_object.cpp",
287  "${distributeddb_path}/gaussdb_rd/src/oh_adapter/src/kv_store_manager.cpp",
288  "${distributeddb_path}/gaussdb_rd/src/oh_adapter/src/sqlite_store_executor_impl.cpp",
289  "${distributeddb_path}/gaussdb_rd/src/oh_adapter/src/rd_sqlite_utils.cpp",
290]
291