]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: move common/util.cc into ceph-common
authorKefu Chai <kchai@redhat.com>
Thu, 1 Jun 2017 02:26:50 +0000 (10:26 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 14 Jun 2017 15:53:50 +0000 (23:53 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt
src/mds/CMakeLists.txt
src/mon/CMakeLists.txt
src/osd/CMakeLists.txt
src/test/mds/CMakeLists.txt
src/tools/rbd/CMakeLists.txt

index b19d00d779de01fe1a9791eaa4ae557de50c3cd3..668a43af8b2da3e82146318d1310da6c75aadb47 100644 (file)
@@ -534,6 +534,7 @@ set(libcommon_files
   common/fs_types.cc
   common/dns_resolve.cc
   common/hostname.cc
+  common/util.cc
   arch/probe.cc
   ${auth_files}
   ${mds_files})
@@ -769,10 +770,6 @@ target_link_libraries(ceph-dencoder
 install(TARGETS ceph-dencoder DESTINATION bin)
 
 # Monitor
-set(common_util_src
-  common/util.cc)
-add_library(common_util_obj OBJECT ${common_util_src})
-
 add_subdirectory(mon)
 set(ceph_mon_srcs
   ceph_mon.cc)
@@ -857,8 +854,7 @@ add_subdirectory(osd)
 
 set(ceph_osd_srcs
   ceph_osd.cc)
-add_executable(ceph-osd ${ceph_osd_srcs}
-  $<TARGET_OBJECTS:common_util_obj>)
+add_executable(ceph-osd ${ceph_osd_srcs})
 add_dependencies(ceph-osd erasure_code_plugins)
 target_link_libraries(ceph-osd osd os global-static common
   ${BLKID_LIBRARIES} ${RDMA_LIBRARIES})
@@ -870,8 +866,7 @@ install(TARGETS ceph-osd DESTINATION bin)
 add_subdirectory(mds)
 set(ceph_mds_srcs
   ceph_mds.cc)
-add_executable(ceph-mds ${ceph_mds_srcs}
-  $<TARGET_OBJECTS:common_util_obj>)
+add_executable(ceph-mds ${ceph_mds_srcs})
 target_link_libraries(ceph-mds mds ${CMAKE_DL_LIBS} global-static common
   Boost::thread)
 install(TARGETS ceph-mds DESTINATION bin)
index b7f7d0c51154c128f87a546a26539ec432e421e6..aa3b9705a6e00d2e207c366c9ec68b91c2057c1c 100644 (file)
@@ -39,6 +39,5 @@ set(mds_srcs
   ${CMAKE_SOURCE_DIR}/src/common/TrackedOp.cc
   ${CMAKE_SOURCE_DIR}/src/osdc/Journaler.cc)
 add_library(mds STATIC ${mds_srcs}
-  $<TARGET_OBJECTS:heap_profiler_objs>
-  $<TARGET_OBJECTS:common_util_obj>)
+  $<TARGET_OBJECTS:heap_profiler_objs>)
 target_link_libraries(mds ${ALLOC_LIBS} osdc liblua)
index 3b91b069e2447b7e0f3ff4863c42909ace2aa2d4..06196415d7056e3f299919b60ef73c6131547c90 100644 (file)
@@ -24,6 +24,5 @@ add_library(mon STATIC
   ${lib_mon_srcs}
   $<TARGET_OBJECTS:mon_common_objs>
   $<TARGET_OBJECTS:kv_objs>
-  $<TARGET_OBJECTS:common_util_obj>
   $<TARGET_OBJECTS:heap_profiler_objs>)
 target_link_libraries(mon ${ALLOC_LIBS})
index 28897f8b0140f6f10a3b7491b2c4115ceae068ff..670223b6cf4e170577b7a98936500ae0efd34186 100644 (file)
@@ -39,8 +39,7 @@ endif()
 add_library(osd STATIC ${osd_srcs}
   $<TARGET_OBJECTS:cls_references_objs>
   $<TARGET_OBJECTS:global_common_objs>
-  $<TARGET_OBJECTS:heap_profiler_objs>
-  $<TARGET_OBJECTS:common_util_obj>)
+  $<TARGET_OBJECTS:heap_profiler_objs>)
 target_link_libraries(osd ${LEVELDB_LIBRARIES} ${CMAKE_DL_LIBS} ${ALLOC_LIBS})
 if(WITH_LTTNG)
   add_dependencies(osd osd-tp pg-tp)
index 24c678e6081087ab2edf647f89819dd18b0ae4a3..b4d0be301f5d3a5454486c555c9d0ed63e48d159 100644 (file)
@@ -9,7 +9,6 @@ target_link_libraries(unittest_mds_authcap mds global ${BLKID_LIBRARIES})
 # unittest_mds_sessionfilter
 add_executable(unittest_mds_sessionfilter
   TestSessionFilter.cc
-  $<TARGET_OBJECTS:common_util_obj>
   $<TARGET_OBJECTS:unit-main>
   )
 add_ceph_unittest(unittest_mds_sessionfilter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mds_sessionfilter)
index c0264b61f8c62d8def58787c963f8733f7330184..8774b4902813b3f1b679e50a6c756d84ad765fd1 100644 (file)
@@ -36,7 +36,6 @@ set(rbd_srcs
   action/Trash.cc
   action/Watch.cc)
 add_executable(rbd ${rbd_srcs}
-  $<TARGET_OBJECTS:common_util_obj>
   $<TARGET_OBJECTS:common_texttable_obj>)
 set_target_properties(rbd PROPERTIES OUTPUT_NAME rbd)
 target_link_libraries(rbd librbd librados