2018-05-03 02:25:38 +08:00
|
|
|
set(FDBRPC_SRCS
|
|
|
|
AsyncFileCached.actor.h
|
|
|
|
AsyncFileEIO.actor.h
|
|
|
|
AsyncFileKAIO.actor.h
|
|
|
|
AsyncFileNonDurable.actor.h
|
|
|
|
AsyncFileReadAhead.actor.h
|
|
|
|
AsyncFileWinASIO.actor.h
|
|
|
|
AsyncFileCached.actor.cpp
|
|
|
|
AsyncFileNonDurable.actor.cpp
|
|
|
|
AsyncFileWriteChecker.cpp
|
|
|
|
FailureMonitor.actor.cpp
|
|
|
|
FlowTransport.actor.cpp
|
|
|
|
genericactors.actor.h
|
|
|
|
genericactors.actor.cpp
|
2020-02-18 13:54:05 +08:00
|
|
|
HealthMonitor.actor.cpp
|
2018-05-03 02:25:38 +08:00
|
|
|
IAsyncFile.actor.cpp
|
|
|
|
LoadBalance.actor.h
|
|
|
|
Locality.cpp
|
|
|
|
Net2FileSystem.cpp
|
2018-12-14 09:13:41 +08:00
|
|
|
networksender.actor.h
|
2018-05-03 02:25:38 +08:00
|
|
|
QueueModel.cpp
|
|
|
|
ReplicationPolicy.cpp
|
|
|
|
ReplicationTypes.cpp
|
|
|
|
ReplicationUtils.cpp
|
2020-12-20 07:46:07 +08:00
|
|
|
SimExternalConnection.actor.cpp
|
|
|
|
SimExternalConnection.h
|
2020-07-10 07:39:15 +08:00
|
|
|
Stats.actor.cpp
|
|
|
|
Stats.h
|
2018-05-03 02:25:38 +08:00
|
|
|
sim2.actor.cpp
|
|
|
|
sim_validation.cpp
|
2019-08-01 23:48:25 +08:00
|
|
|
TimedRequest.h
|
2021-03-06 03:28:15 +08:00
|
|
|
TraceFileIO.cpp
|
|
|
|
TSSComparison.h)
|
2019-04-10 02:16:45 +08:00
|
|
|
|
2021-01-27 08:23:17 +08:00
|
|
|
set(COMPILE_EIO OFF)
|
2018-05-03 02:25:38 +08:00
|
|
|
|
2019-04-10 02:16:45 +08:00
|
|
|
if(NOT WIN32)
|
2020-02-02 02:04:22 +08:00
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
|
|
|
find_library(EIO eio)
|
2021-01-27 08:23:17 +08:00
|
|
|
if(NOT EIO)
|
|
|
|
set(COMPILE_EIO ON)
|
2020-02-02 02:04:22 +08:00
|
|
|
endif()
|
|
|
|
else()
|
2021-01-27 08:23:17 +08:00
|
|
|
set(COMPILE_EIO ON)
|
2020-02-02 02:04:22 +08:00
|
|
|
endif()
|
2019-02-07 11:27:38 +08:00
|
|
|
endif()
|
2019-04-10 02:16:45 +08:00
|
|
|
|
2019-08-10 04:43:02 +08:00
|
|
|
set(FDBRPC_SRCS_DISABLE_ACTOR_DIAGNOSTICS
|
2019-02-13 02:55:57 +08:00
|
|
|
ActorFuzz.actor.cpp
|
|
|
|
FlowTests.actor.cpp
|
|
|
|
dsltest.actor.cpp)
|
|
|
|
|
2019-02-09 08:51:13 +08:00
|
|
|
add_flow_target(STATIC_LIBRARY NAME fdbrpc
|
|
|
|
SRCS ${FDBRPC_SRCS}
|
2019-08-10 04:43:02 +08:00
|
|
|
DISABLE_ACTOR_DIAGNOSTICS ${FDBRPC_SRCS_DISABLE_ACTOR_DIAGNOSTICS})
|
2018-05-03 02:25:38 +08:00
|
|
|
target_include_directories(fdbrpc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/libeio)
|
2019-04-10 02:19:13 +08:00
|
|
|
target_link_libraries(fdbrpc PUBLIC flow)
|
2021-01-27 08:23:17 +08:00
|
|
|
if(COMPILE_EIO)
|
|
|
|
add_library(eio STATIC libeio/eio.c)
|
|
|
|
if(USE_VALGRIND)
|
|
|
|
target_link_libraries(eio PUBLIC Valgrind)
|
|
|
|
endif()
|
|
|
|
target_compile_definitions(eio PRIVATE USE_UCONTEXT)
|
|
|
|
target_compile_options(eio BEFORE PRIVATE -w) # disable warnings for eio
|
|
|
|
target_link_libraries(fdbrpc PRIVATE eio)
|
|
|
|
endif()
|
2021-02-18 00:23:41 +08:00
|
|
|
if(WIN32)
|
|
|
|
add_library(coro STATIC libcoroutine/Common.c libcoroutine/Coro.c)
|
|
|
|
target_link_libraries(fdbrpc PRIVATE coro)
|
|
|
|
endif()
|