Skip to content

Commit

Permalink
CMakeLists: trim rbd/rgw accidental dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Donnelly <[email protected]>
  • Loading branch information
batrick committed Jul 25, 2017
1 parent dfd5af2 commit 491cf4e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
10 changes: 8 additions & 2 deletions src/libcephd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ set(merge_libs
cephd_cls
cephd_cls_kvs
cephd_rados
cephd_rbd
cephd_rgw
common
common_utf8
erasure_code
Expand All @@ -33,6 +31,14 @@ if(NOT WITH_SYSTEM_ROCKSDB)
list(APPEND merge_libs ${ROCKSDB_LIBRARIES})
endif(NOT WITH_SYSTEM_ROCKSDB)

if(WITH_RADOSGW)
list(APPEND merge_libs cephd_rgw)
endif(WITH_RADOSGW)

if(WITH_RBD)
list(APPEND merge_libs cephd_rbd)
endif(WITH_RBD)

if(HAVE_ARMV8_CRC)
list(APPEND merge_libs common_crc_aarch64)
endif(HAVE_ARMV8_CRC)
Expand Down
8 changes: 3 additions & 5 deletions src/osdc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
set(osdc_files
Objecter.cc
Filer.cc)
set(osdc_rbd_files
Filer.cc
ObjectCacher.cc
Objecter.cc
Striper.cc)
add_library(osdc_rbd_objs OBJECT ${osdc_rbd_files})
add_library(osdc STATIC ${osdc_files} $<TARGET_OBJECTS:osdc_rbd_objs>)
add_library(osdc STATIC ${osdc_files})
if(WITH_LTTNG AND WITH_EVENTTRACE)
add_dependencies(osdc eventtrace_tp)
endif()
7 changes: 5 additions & 2 deletions src/tracing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ endfunction()
set(osd_traces oprequest.tp osd.tp pg.tp)
add_tracing_library(osd_tp "${osd_traces}" 1.0.0)
add_tracing_library(rados_tp librados.tp 2.0.0)
add_tracing_library(rbd_tp librbd.tp 1.0.0)
add_tracing_library(os_tp objectstore.tp 1.0.0)

install(TARGETS rados_tp osd_tp rbd_tp os_tp DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(TARGETS rados_tp osd_tp os_tp DESTINATION ${CMAKE_INSTALL_LIBDIR})
if(WITH_RBD)
add_tracing_library(rbd_tp librbd.tp 1.0.0)
install(TARGETS rbd_tp DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif(WITH_RBD)
if(WITH_OSD_INSTRUMENT_FUNCTIONS)
add_tracing_library(cyg_profile_tp cyg_profile.tp 1.0.0)
install(TARGETS cyg_profile_tp DESTINATION ${CMAKE_INSTALL_LIBDIR})
Expand Down

0 comments on commit 491cf4e

Please sign in to comment.