2018-05-04 06:48:10 +08:00
|
|
|
set(FDBCLIENT_SRCS
|
2021-06-04 06:10:04 +08:00
|
|
|
ActorLineageProfiler.h
|
|
|
|
ActorLineageProfiler.cpp
|
|
|
|
AnnotateActor.cpp
|
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
|
2021-07-03 12:41:50 +08:00
|
|
|
ClientBooleanParams.cpp
|
|
|
|
ClientBooleanParams.h
|
2021-07-23 01:14:30 +08:00
|
|
|
BlobWorkerInterface.h
|
|
|
|
BlobGranuleReader.actor.cpp
|
|
|
|
BlobGranuleReader.actor.h
|
2021-08-26 04:01:38 +08:00
|
|
|
BlobGranuleCommon.h
|
2021-09-04 03:05:35 +08:00
|
|
|
BlobWorkerCommon.h
|
2021-06-10 11:50:00 +08:00
|
|
|
ClientKnobCollection.cpp
|
|
|
|
ClientKnobCollection.h
|
2021-06-19 05:48:45 +08:00
|
|
|
ClientKnobs.cpp
|
|
|
|
ClientKnobs.h
|
2018-05-04 06:48:10 +08:00
|
|
|
ClientLogEvents.h
|
|
|
|
ClientWorkerInterface.h
|
2021-10-11 11:44:56 +08:00
|
|
|
ClusterConnectionFile.actor.cpp
|
|
|
|
ClusterConnectionFile.h
|
|
|
|
ClusterConnectionKey.actor.cpp
|
|
|
|
ClusterConnectionKey.actor.h
|
|
|
|
ClusterConnectionMemoryRecord.actor.cpp
|
|
|
|
ClusterConnectionMemoryRecord.h
|
2018-05-04 06:48:10 +08:00
|
|
|
ClusterInterface.h
|
2021-06-20 00:47:13 +08:00
|
|
|
CommitProxyInterface.h
|
2018-05-04 06:48:10 +08:00
|
|
|
CommitTransaction.h
|
2021-05-12 02:12:19 +08:00
|
|
|
ConfigKnobs.cpp
|
2021-04-25 08:22:58 +08:00
|
|
|
ConfigKnobs.h
|
2021-05-17 08:25:41 +08:00
|
|
|
ConfigTransactionInterface.cpp
|
2021-04-17 08:58:00 +08:00
|
|
|
ConfigTransactionInterface.h
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2021-06-08 05:32:51 +08:00
|
|
|
FDBTypes.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
FDBTypes.h
|
2021-06-04 06:10:04 +08:00
|
|
|
FluentDSampleIngestor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2021-05-18 06:31:03 +08:00
|
|
|
IConfigTransaction.cpp
|
2021-05-18 04:02:55 +08:00
|
|
|
IConfigTransaction.h
|
2021-05-11 04:18:31 +08:00
|
|
|
ISingleThreadTransaction.cpp
|
2021-04-30 13:31:16 +08:00
|
|
|
ISingleThreadTransaction.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.h
|
2021-06-03 14:40:52 +08:00
|
|
|
IKnobCollection.cpp
|
|
|
|
IKnobCollection.h
|
2018-05-04 06:48:10 +08:00
|
|
|
ManagementAPI.actor.cpp
|
2019-02-18 09:38:13 +08:00
|
|
|
ManagementAPI.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
MonitorLeader.actor.cpp
|
|
|
|
MonitorLeader.h
|
|
|
|
MultiVersionAssignmentVars.h
|
2021-10-07 15:45:43 +08:00
|
|
|
ClientLibManagement.actor.cpp
|
|
|
|
ClientLibManagement.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
MultiVersionTransaction.actor.cpp
|
|
|
|
MultiVersionTransaction.h
|
|
|
|
MutationList.h
|
2021-08-10 05:36:07 +08:00
|
|
|
MutationLogReader.actor.cpp
|
|
|
|
MutationLogReader.actor.h
|
2021-06-17 09:08:51 +08:00
|
|
|
NameLineage.h
|
|
|
|
NameLineage.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
NativeAPI.actor.cpp
|
2019-02-18 07:41:16 +08:00
|
|
|
NativeAPI.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
Notified.h
|
2021-06-20 00:47:13 +08:00
|
|
|
ParallelStream.actor.cpp
|
|
|
|
ParallelStream.actor.h
|
2021-05-18 04:02:55 +08:00
|
|
|
PaxosConfigTransaction.actor.cpp
|
|
|
|
PaxosConfigTransaction.h
|
2021-08-03 03:32:11 +08:00
|
|
|
PImpl.h
|
2021-04-17 08:58:00 +08:00
|
|
|
SimpleConfigTransaction.actor.cpp
|
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
|
2021-05-31 02:51:47 +08:00
|
|
|
RestoreInterface.cpp
|
|
|
|
RestoreInterface.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
|
2021-06-10 11:50:00 +08:00
|
|
|
ServerKnobCollection.cpp
|
|
|
|
ServerKnobCollection.h
|
2021-06-01 18:12:47 +08:00
|
|
|
ServerKnobs.cpp
|
|
|
|
ServerKnobs.h
|
2021-05-01 00:34:36 +08:00
|
|
|
SimpleConfigTransaction.h
|
2018-05-04 06:48:10 +08:00
|
|
|
SnapshotCache.h
|
2021-06-20 00:47:13 +08:00
|
|
|
SpecialKeySpace.actor.cpp
|
|
|
|
SpecialKeySpace.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
Status.h
|
|
|
|
StatusClient.actor.cpp
|
|
|
|
StatusClient.h
|
2021-03-06 03:28:15 +08:00
|
|
|
StorageServerInterface.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
StorageServerInterface.h
|
|
|
|
Subspace.cpp
|
|
|
|
Subspace.h
|
2021-05-21 02:16:31 +08:00
|
|
|
StackLineage.h
|
|
|
|
StackLineage.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
SystemData.cpp
|
|
|
|
SystemData.h
|
2020-04-04 06:24:14 +08:00
|
|
|
TagThrottle.actor.cpp
|
2021-08-11 09:07:36 +08:00
|
|
|
TagThrottle.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
TaskBucket.actor.cpp
|
|
|
|
TaskBucket.h
|
2021-06-10 11:50:00 +08:00
|
|
|
TestKnobCollection.cpp
|
|
|
|
TestKnobCollection.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
|
2021-09-21 00:46:34 +08:00
|
|
|
WellKnownEndpoints.h
|
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})
|
2021-09-22 02:35:55 +08:00
|
|
|
add_dependencies(fdbclient fdboptions)
|
2021-06-04 06:10:04 +08:00
|
|
|
target_link_libraries(fdbclient PUBLIC fdbrpc msgpack)
|
2021-07-24 08:18:13 +08:00
|
|
|
|
|
|
|
# Create a separate fdbclient library with sampling enabled. This lets
|
|
|
|
# fdbserver retain sampling functionality in client code while disabling
|
|
|
|
# sampling for pure clients.
|
|
|
|
add_flow_target(STATIC_LIBRARY NAME fdbclient_sampling SRCS ${FDBCLIENT_SRCS} ADDL_SRCS ${options_srcs})
|
2021-09-22 02:35:55 +08:00
|
|
|
add_dependencies(fdbclient_sampling fdboptions)
|
2021-07-24 08:18:13 +08:00
|
|
|
target_link_libraries(fdbclient_sampling PUBLIC fdbrpc_sampling msgpack)
|
|
|
|
target_compile_definitions(fdbclient_sampling PRIVATE -DENABLE_SAMPLING)
|
2021-08-21 00:32:56 +08:00
|
|
|
if(WIN32)
|
|
|
|
add_dependencies(fdbclient_sampling_actors fdbclient_actors)
|
|
|
|
endif()
|
2021-07-24 08:18:13 +08:00
|
|
|
|
2020-10-23 00:40:27 +08:00
|
|
|
if(BUILD_AZURE_BACKUP)
|
2021-06-04 06:10:04 +08:00
|
|
|
target_link_libraries(fdbclient PRIVATE curl uuid azure-storage-lite)
|
2021-07-24 08:18:13 +08:00
|
|
|
target_link_libraries(fdbclient_sampling PRIVATE curl uuid azure-storage-lite)
|
2020-10-23 00:40:27 +08:00
|
|
|
endif()
|