2018-05-04 06:48:10 +08:00
|
|
|
set(FDBCLIENT_SRCS
|
2020-10-30 11:42:23 +08:00
|
|
|
AsyncFileS3BlobStore.actor.cpp
|
|
|
|
AsyncFileS3BlobStore.actor.h
|
2020-10-23 07:27:37 +08:00
|
|
|
AsyncTaskThread.actor.cpp
|
2020-10-23 04:22:38 +08:00
|
|
|
AsyncTaskThread.h
|
2018-05-04 06:48:10 +08:00
|
|
|
Atomic.h
|
|
|
|
AutoPublicAddress.cpp
|
2019-02-18 07:19:05 +08:00
|
|
|
BackupAgent.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
BackupAgentBase.actor.cpp
|
|
|
|
BackupContainer.actor.cpp
|
|
|
|
BackupContainer.h
|
2020-10-21 09:55:40 +08:00
|
|
|
BackupContainerFileSystem.actor.cpp
|
2020-10-22 01:43:08 +08:00
|
|
|
BackupContainerFileSystem.h
|
2020-10-21 15:06:59 +08:00
|
|
|
BackupContainerLocalDirectory.actor.cpp
|
|
|
|
BackupContainerLocalDirectory.h
|
2020-10-22 00:24:15 +08:00
|
|
|
BackupContainerS3BlobStore.actor.cpp
|
|
|
|
BackupContainerS3BlobStore.h
|
2018-05-04 06:48:10 +08:00
|
|
|
ClientLogEvents.h
|
|
|
|
ClientWorkerInterface.h
|
|
|
|
ClusterInterface.h
|
|
|
|
CommitTransaction.h
|
|
|
|
CoordinationInterface.h
|
|
|
|
DatabaseBackupAgent.actor.cpp
|
2018-12-14 06:53:19 +08:00
|
|
|
DatabaseConfiguration.cpp
|
|
|
|
DatabaseConfiguration.h
|
2018-05-04 06:48:10 +08:00
|
|
|
DatabaseContext.h
|
|
|
|
EventTypes.actor.h
|
|
|
|
FDBOptions.h
|
|
|
|
FDBTypes.h
|
|
|
|
FileBackupAgent.actor.cpp
|
2021-03-18 11:41:46 +08:00
|
|
|
GlobalConfig.h
|
2021-02-13 10:55:01 +08:00
|
|
|
GlobalConfig.actor.h
|
|
|
|
GlobalConfig.actor.cpp
|
2020-07-15 15:37:41 +08:00
|
|
|
GrvProxyInterface.h
|
2018-12-14 06:53:19 +08:00
|
|
|
HTTP.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
IClientApi.h
|
2018-12-14 07:52:27 +08:00
|
|
|
JsonBuilder.cpp
|
|
|
|
JsonBuilder.h
|
2018-05-04 06:48:10 +08:00
|
|
|
KeyBackedTypes.h
|
|
|
|
KeyRangeMap.actor.cpp
|
|
|
|
KeyRangeMap.h
|
|
|
|
Knobs.cpp
|
|
|
|
Knobs.h
|
|
|
|
ManagementAPI.actor.cpp
|
2019-02-18 09:38:13 +08:00
|
|
|
ManagementAPI.actor.h
|
2020-09-11 08:44:15 +08:00
|
|
|
CommitProxyInterface.h
|
2018-05-04 06:48:10 +08:00
|
|
|
MonitorLeader.actor.cpp
|
|
|
|
MonitorLeader.h
|
|
|
|
MultiVersionAssignmentVars.h
|
|
|
|
MultiVersionTransaction.actor.cpp
|
|
|
|
MultiVersionTransaction.h
|
|
|
|
MutationList.h
|
|
|
|
NativeAPI.actor.cpp
|
2019-02-18 07:41:16 +08:00
|
|
|
NativeAPI.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
Notified.h
|
2020-03-04 10:35:04 +08:00
|
|
|
SpecialKeySpace.actor.cpp
|
|
|
|
SpecialKeySpace.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
ReadYourWrites.actor.cpp
|
|
|
|
ReadYourWrites.h
|
2019-09-26 15:18:37 +08:00
|
|
|
RestoreWorkerInterface.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
RunTransaction.actor.h
|
|
|
|
RYWIterator.cpp
|
|
|
|
RYWIterator.h
|
2020-10-30 11:42:23 +08:00
|
|
|
S3BlobStore.actor.cpp
|
2018-12-14 07:52:27 +08:00
|
|
|
Schemas.cpp
|
|
|
|
Schemas.h
|
2018-05-04 06:48:10 +08:00
|
|
|
SnapshotCache.h
|
|
|
|
Status.h
|
|
|
|
StatusClient.actor.cpp
|
|
|
|
StatusClient.h
|
|
|
|
StorageServerInterface.h
|
|
|
|
Subspace.cpp
|
|
|
|
Subspace.h
|
|
|
|
SystemData.cpp
|
|
|
|
SystemData.h
|
2020-04-04 06:24:14 +08:00
|
|
|
TagThrottle.actor.cpp
|
|
|
|
TagThrottle.h
|
2018-05-04 06:48:10 +08:00
|
|
|
TaskBucket.actor.cpp
|
|
|
|
TaskBucket.h
|
2020-08-12 06:40:35 +08:00
|
|
|
ThreadSafeTransaction.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
ThreadSafeTransaction.h
|
|
|
|
Tuple.cpp
|
|
|
|
Tuple.h
|
|
|
|
VersionedMap.actor.h
|
|
|
|
VersionedMap.h
|
2020-04-15 04:16:28 +08:00
|
|
|
VersionedMap.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
WriteMap.h
|
|
|
|
json_spirit/json_spirit_error_position.h
|
|
|
|
json_spirit/json_spirit_reader_template.h
|
|
|
|
json_spirit/json_spirit_value.h
|
|
|
|
json_spirit/json_spirit_writer_options.h
|
|
|
|
json_spirit/json_spirit_writer_template.h
|
2018-12-14 06:53:19 +08:00
|
|
|
libb64/cdecode.c
|
|
|
|
libb64/cencode.c
|
|
|
|
md5/md5.c
|
2019-09-18 04:04:54 +08:00
|
|
|
sha1/SHA1.cpp
|
|
|
|
zipf.c
|
|
|
|
zipf.h)
|
2018-05-04 06:48:10 +08:00
|
|
|
|
2019-04-18 03:10:51 +08:00
|
|
|
set(options_srcs ${CMAKE_CURRENT_BINARY_DIR}/FDBOptions.g.cpp)
|
2018-05-04 06:48:10 +08:00
|
|
|
|
2019-02-05 13:25:10 +08:00
|
|
|
vexillographer_compile(TARGET fdboptions LANG cpp OUT ${CMAKE_CURRENT_BINARY_DIR}/FDBOptions.g
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/FDBOptions.g.h ${CMAKE_CURRENT_BINARY_DIR}/FDBOptions.g.cpp)
|
2018-05-04 06:48:10 +08:00
|
|
|
|
2020-10-23 00:40:27 +08:00
|
|
|
set(BUILD_AZURE_BACKUP OFF CACHE BOOL "Build Azure backup client")
|
|
|
|
if(BUILD_AZURE_BACKUP)
|
|
|
|
add_compile_definitions(BUILD_AZURE_BACKUP)
|
|
|
|
set(FDBCLIENT_SRCS
|
|
|
|
${FDBCLIENT_SRCS}
|
|
|
|
BackupContainerAzureBlobStore.actor.cpp
|
|
|
|
BackupContainerAzureBlobStore.h)
|
2020-10-11 11:10:12 +08:00
|
|
|
|
2020-10-23 00:40:27 +08:00
|
|
|
configure_file(azurestorage.cmake azurestorage-download/CMakeLists.txt)
|
2020-10-11 11:10:12 +08:00
|
|
|
|
2020-10-23 00:40:27 +08:00
|
|
|
execute_process(
|
|
|
|
COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
|
|
|
|
RESULT_VARIABLE results
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/azurestorage-download
|
|
|
|
)
|
2020-10-11 11:10:12 +08:00
|
|
|
|
2020-10-23 00:40:27 +08:00
|
|
|
if(results)
|
|
|
|
message(FATAL_ERROR "Configuration step for AzureStorage has Failed. ${results}")
|
|
|
|
endif()
|
2020-10-11 11:10:12 +08:00
|
|
|
|
2020-10-23 00:40:27 +08:00
|
|
|
execute_process(
|
|
|
|
COMMAND ${CMAKE_COMMAND} --build . --config Release
|
|
|
|
RESULT_VARIABLE results
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/azurestorage-download
|
|
|
|
)
|
2020-10-11 11:10:12 +08:00
|
|
|
|
2020-10-23 00:40:27 +08:00
|
|
|
if(results)
|
|
|
|
message(FATAL_ERROR "Build step for AzureStorage has Failed. ${results}")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/azurestorage-src
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/azurestorage-build
|
|
|
|
)
|
|
|
|
endif()
|
2020-10-11 11:10:12 +08:00
|
|
|
|
2019-04-18 03:10:51 +08:00
|
|
|
add_flow_target(STATIC_LIBRARY NAME fdbclient SRCS ${FDBCLIENT_SRCS} ADDL_SRCS ${options_srcs})
|
2018-05-04 06:48:10 +08:00
|
|
|
add_dependencies(fdbclient fdboptions)
|
2020-10-23 00:40:27 +08:00
|
|
|
if(BUILD_AZURE_BACKUP)
|
2021-05-11 11:26:12 +08:00
|
|
|
target_link_libraries(fdbclient PUBLIC fdbrpc PRIVATE curl uuid azure-storage-lite)
|
|
|
|
else()
|
|
|
|
target_link_libraries(fdbclient PUBLIC fdbrpc)
|
2020-10-23 00:40:27 +08:00
|
|
|
endif()
|