This commit add librados, librbd to the embedded ceph static library. This is needed to support daemons built with libcephd that want to run mon commands, create rbd volumes, snapshots etc.
Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
set(merge_libs
cephd_base
- mon
- osd
+ cephd_compressor
+ cephd_ec
+ cephd_rados
+ cephd_rbd
+ cls_journal_client
+ cls_lock_client
+ cls_rbd_client
common
common_utf8
- os
- kv
+ erasure_code
global
- rocksdb
json_spirit
- erasure_code
- cephd_compressor
- cephd_ec)
+ kv
+ mon
+ os
+ osd
+ osdc
+ rocksdb)
if(HAVE_ARMV8_CRC)
list(APPEND merge_libs common_crc_aarch64)
add_library(librados ALIAS rados_a)
endif(ENABLE_SHARED)
install(TARGETS librados DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+if(WITH_EMBEDDED)
+ add_library(cephd_rados STATIC
+ $<TARGET_OBJECTS:librados_api_obj>
+ $<TARGET_OBJECTS:librados_objs>)
+endif()
LINK_FLAGS "-Wl,--exclude-libs,ALL")
endif(ENABLE_SHARED)
install(TARGETS librbd DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+if(WITH_EMBEDDED)
+ add_library(cephd_rbd_base STATIC librbd.cc ${CMAKE_SOURCE_DIR}/src/common/ContextCompletion.cc)
+ merge_static_libraries(cephd_rbd cephd_rbd_base rbd_internal rbd_types journal)
+endif()