foundationdb/fdbrpc/CMakeLists.txt

71 lines
1.7 KiB
CMake
Raw Normal View History

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
networksender.actor.h
2018-05-03 02:25:38 +08:00
QueueModel.cpp
ReplicationPolicy.cpp
ReplicationTypes.cpp
ReplicationUtils.cpp
SimExternalConnection.actor.cpp
SimExternalConnection.h
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
set(FDBRPC_SRCS_DISABLE_ACTOR_DIAGNOSTICS
ActorFuzz.actor.cpp
FlowTests.actor.cpp
dsltest.actor.cpp)
add_flow_target(STATIC_LIBRARY NAME fdbrpc
SRCS ${FDBRPC_SRCS}
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()
if(WIN32)
add_library(coro STATIC libcoroutine/Common.c libcoroutine/Coro.c)
target_link_libraries(fdbrpc PRIVATE coro)
endif()