2019-07-03 21:32:03 +08:00
|
|
|
set(storage_v2_src_files
|
2021-02-19 18:00:10 +08:00
|
|
|
commit_log.cpp
|
2020-01-30 22:56:11 +08:00
|
|
|
constraints.cpp
|
2020-04-17 16:20:47 +08:00
|
|
|
durability/durability.cpp
|
|
|
|
durability/serialization.cpp
|
|
|
|
durability/snapshot.cpp
|
|
|
|
durability/wal.cpp
|
2019-07-08 21:10:05 +08:00
|
|
|
edge_accessor.cpp
|
2019-07-25 23:11:45 +08:00
|
|
|
indices.cpp
|
2019-12-23 19:43:43 +08:00
|
|
|
property_store.cpp
|
2019-07-03 21:32:03 +08:00
|
|
|
vertex_accessor.cpp
|
|
|
|
storage.cpp)
|
|
|
|
|
2021-03-10 17:36:38 +08:00
|
|
|
##### Replication #####
|
2020-10-27 17:11:43 +08:00
|
|
|
|
2021-03-10 17:36:38 +08:00
|
|
|
define_add_lcp(add_lcp_storage lcp_storage_cpp_files generated_lcp_storage_files)
|
2020-10-27 17:11:43 +08:00
|
|
|
|
2021-03-10 17:36:38 +08:00
|
|
|
add_lcp_storage(replication/rpc.lcp SLK_SERIALIZE)
|
2020-10-27 17:11:43 +08:00
|
|
|
|
2021-03-10 17:36:38 +08:00
|
|
|
add_custom_target(generate_lcp_storage DEPENDS ${generated_lcp_storage_files})
|
|
|
|
|
|
|
|
set(storage_v2_src_files
|
|
|
|
${storage_v2_src_files}
|
|
|
|
replication/replication_client.cpp
|
|
|
|
replication/replication_server.cpp
|
|
|
|
replication/serialization.cpp
|
|
|
|
replication/slk.cpp
|
|
|
|
${lcp_storage_cpp_files})
|
|
|
|
|
|
|
|
#######################
|
2020-10-27 17:11:43 +08:00
|
|
|
|
2019-07-03 21:32:03 +08:00
|
|
|
add_library(mg-storage-v2 STATIC ${storage_v2_src_files})
|
2021-01-21 22:47:56 +08:00
|
|
|
target_link_libraries(mg-storage-v2 Threads::Threads mg-utils gflags)
|
2020-10-27 17:11:43 +08:00
|
|
|
|
2021-03-10 17:36:38 +08:00
|
|
|
add_dependencies(mg-storage-v2 generate_lcp_storage)
|
|
|
|
target_link_libraries(mg-storage-v2 mg-rpc mg-slk)
|