-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcrimson consolidates the object library of crimson_{net,thread} and seastar_{buffer,net,thread}_objs. by offering a static library glueing seastar, we can link against these libraries and its dependencies in a simpler way. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information
Showing
5 changed files
with
24 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
add_subdirectory(net) | ||
add_subdirectory(thread) | ||
set(crimson_net_srcs | ||
net/Dispatcher.cc | ||
net/Errors.cc | ||
net/SocketConnection.cc | ||
net/SocketMessenger.cc) | ||
set(crimson_thread_srcs | ||
thread/ThreadPool.cc | ||
thread/Throttle.cc) | ||
add_library(crimson STATIC | ||
${crimson_net_srcs} | ||
${crimson_thread_srcs} | ||
${CMAKE_SOURCE_DIR}/src/common/buffer_seastar.cc) | ||
target_link_libraries(crimson Seastar::seastar) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,24 @@ | ||
set(test_buffer_srcs | ||
test_buffer.cc | ||
$<TARGET_OBJECTS:seastar_buffer_obj>) | ||
add_executable(unittest_seastar_buffer ${test_buffer_srcs}) | ||
add_executable(unittest_seastar_buffer | ||
test_buffer.cc) | ||
add_ceph_unittest(unittest_seastar_buffer) | ||
target_link_libraries(unittest_seastar_buffer ceph-common Seastar::seastar) | ||
target_link_libraries(unittest_seastar_buffer ceph-common crimson) | ||
|
||
add_executable(unittest_seastar_denc | ||
test_denc.cc | ||
$<TARGET_OBJECTS:seastar_buffer_obj> | ||
$<TARGET_OBJECTS:unit-main>) | ||
add_ceph_unittest(unittest_seastar_denc) | ||
target_link_libraries(unittest_seastar_denc ceph-common global Seastar::seastar) | ||
target_link_libraries(unittest_seastar_denc ceph-common global crimson) | ||
|
||
set(test_messenger_srcs | ||
test_messenger.cc | ||
$<TARGET_OBJECTS:seastar_buffer_obj> | ||
$<TARGET_OBJECTS:crimson_net_objs> | ||
$<TARGET_OBJECTS:crimson_thread_objs>) | ||
add_executable(unittest_seastar_messenger ${test_messenger_srcs}) | ||
add_executable(unittest_seastar_messenger test_messenger.cc) | ||
add_ceph_unittest(unittest_seastar_messenger) | ||
target_link_libraries(unittest_seastar_messenger ceph-common Seastar::seastar) | ||
target_link_libraries(unittest_seastar_messenger ceph-common crimson) | ||
|
||
set(test_alien_echo_srcs | ||
test_alien_echo.cc | ||
$<TARGET_OBJECTS:seastar_buffer_obj> | ||
$<TARGET_OBJECTS:crimson_net_objs> | ||
$<TARGET_OBJECTS:crimson_thread_objs>) | ||
add_executable(unittest_seastar_echo ${test_alien_echo_srcs}) | ||
add_executable(unittest_seastar_echo | ||
test_alien_echo.cc) | ||
add_ceph_unittest(unittest_seastar_echo) | ||
target_link_libraries(unittest_seastar_echo ceph-common global Seastar::seastar) | ||
target_link_libraries(unittest_seastar_echo ceph-common global crimson) | ||
|
||
add_executable(unittest_seastar_thread_pool | ||
test_thread_pool.cc | ||
$<TARGET_OBJECTS:crimson_thread_objs>) | ||
test_thread_pool.cc) | ||
add_ceph_unittest(unittest_seastar_thread_pool) | ||
target_link_libraries(unittest_seastar_thread_pool Seastar::seastar) | ||
target_link_libraries(unittest_seastar_thread_pool crimson) |