summaryrefslogtreecommitdiffstats
path: root/src/msg/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/msg/CMakeLists.txt
parentInitial commit. (diff)
downloadceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz
ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/msg/CMakeLists.txt')
-rw-r--r--src/msg/CMakeLists.txt76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/msg/CMakeLists.txt b/src/msg/CMakeLists.txt
new file mode 100644
index 00000000..1ad34615
--- /dev/null
+++ b/src/msg/CMakeLists.txt
@@ -0,0 +1,76 @@
+set(msg_srcs
+ DispatchQueue.cc
+ Message.cc
+ Messenger.cc
+ QueueStrategy.cc
+ msg_types.cc
+ simple/Accepter.cc
+ simple/Pipe.cc
+ simple/PipeConnection.cc
+ simple/SimpleMessenger.cc)
+
+if(HAVE_XIO)
+ list(APPEND msg_srcs
+ xio/XioConnection.cc
+ xio/XioMsg.cc
+ xio/XioPool.cc
+ xio/XioMessenger.cc
+ xio/XioPortal.cc)
+endif(HAVE_XIO)
+
+list(APPEND msg_srcs
+ async/AsyncConnection.cc
+ async/AsyncMessenger.cc
+ async/Protocol.cc
+ async/ProtocolV1.cc
+ async/ProtocolV2.cc
+ async/Event.cc
+ async/EventSelect.cc
+ async/PosixStack.cc
+ async/Stack.cc
+ async/crypto_onwire.cc
+ async/frames_v2.cc
+ async/net_handler.cc)
+
+if(LINUX)
+ list(APPEND msg_srcs
+ async/EventEpoll.cc)
+elseif(FREEBSD OR APPLE)
+ list(APPEND msg_srcs
+ async/EventKqueue.cc)
+endif(LINUX)
+
+if(HAVE_RDMA)
+ list(APPEND msg_srcs
+ async/rdma/Infiniband.cc
+ async/rdma/RDMAConnectedSocketImpl.cc
+ async/rdma/RDMAIWARPConnectedSocketImpl.cc
+ async/rdma/RDMAServerSocketImpl.cc
+ async/rdma/RDMAIWARPServerSocketImpl.cc
+ async/rdma/RDMAStack.cc)
+endif()
+
+add_library(common-msg-objs OBJECT ${msg_srcs})
+
+if(WITH_DPDK)
+ set(async_dpdk_srcs
+ async/dpdk/ARP.cc
+ async/dpdk/DPDK.cc
+ async/dpdk/dpdk_rte.cc
+ async/dpdk/DPDKStack.cc
+ async/dpdk/EventDPDK.cc
+ async/dpdk/IP.cc
+ async/dpdk/net.cc
+ async/dpdk/IPChecksum.cc
+ async/dpdk/Packet.cc
+ async/dpdk/TCP.cc
+ async/dpdk/UserspaceEvent.cc
+ async/dpdk/ethernet.cc)
+ add_library(common_async_dpdk STATIC
+ ${async_dpdk_srcs})
+ target_link_libraries(common_async_dpdk PRIVATE
+ dpdk::dpdk)
+ # Stack.cc includes DPDKStack.h, which includes rte_config.h indirectly
+ target_include_directories(common-msg-objs PRIVATE
+ $<TARGET_PROPERTY:dpdk::dpdk,INTERFACE_INCLUDE_DIRECTORIES>)
+endif(WITH_DPDK)