From: Radoslaw Zarzynski Date: Tue, 18 Aug 2015 11:10:02 +0000 (+0200) Subject: rgw: integrate Swift object expiration-related things with CMake. X-Git-Tag: v9.1.0~229^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cdce7a21f915bb2f22a6d21bfafc538e4bde7271;p=ceph.git rgw: integrate Swift object expiration-related things with CMake. Fixes: #4099 Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5b8298e13083..402d8a6dc1ba 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -898,7 +898,8 @@ if(${WITH_RADOSGW}) rgw/rgw_replica_log.cc rgw/rgw_keystone.cc rgw/rgw_quota.cc - rgw/rgw_dencoder.cc) + rgw/rgw_dencoder.cc + rgw/rgw_object_expirer_core.cc) add_library(rgw_a STATIC ${rgw_a_srcs}) @@ -931,19 +932,30 @@ if(${WITH_RADOSGW}) rgw/rgw_admin.cc rgw/rgw_orphan.cc) + set(radosgw_object_expirer_srcs + rgw/rgw_object_expirer.cc) + add_executable(radosgw ${radosgw_srcs} $) target_link_libraries(radosgw rgw_a librados cls_rgw_client cls_lock_client cls_refcount_client - cls_log_client cls_statelog_client cls_version_client - cls_replica_log_client cls_user_client + cls_log_client cls_statelog_client cls_timeindex_client + cls_version_client cls_replica_log_client cls_user_client curl expat global fcgi resolv ${BLKID_LIBRARIES} ${TCMALLOC_LIBS}) install(TARGETS radosgw DESTINATION bin) add_executable(radosgw-admin ${radosgw_admin_srcs} $) target_link_libraries(radosgw-admin rgw_a librados cls_rgw_client cls_lock_client cls_refcount_client - cls_log_client cls_statelog_client cls_version_client - cls_replica_log_client cls_user_client + cls_log_client cls_statelog_client cls_timeindex_client + cls_version_client cls_replica_log_client cls_user_client curl expat global fcgi resolv ${BLKID_LIBRARIES} ${TCMALLOC_LIBS}) install(TARGETS radosgw-admin DESTINATION bin) + + add_executable(radosgw-object-expirer ${radosgw_object_expirer_srcs} $) + target_link_libraries(radosgw-object-expirer rgw_a librados + cls_rgw_client cls_lock_client cls_refcount_client + cls_log_client cls_statelog_client cls_timeindex_client + cls_version_client cls_replica_log_client cls_user_client + curl expat global fcgi resolv ${TCMALLOC_LIBS}) + install(TARGETS radosgw-object-expirer DESTINATION bin) endif(${WITH_RADOSGW}) diff --git a/src/cls/CMakeLists.txt b/src/cls/CMakeLists.txt index c6abc1f664be..c8befd05c2a5 100644 --- a/src/cls/CMakeLists.txt +++ b/src/cls/CMakeLists.txt @@ -60,6 +60,13 @@ install(TARGETS cls_statelog DESTINATION lib/rados-classes) add_library(cls_statelog_client statelog/cls_statelog_client.cc) +# cls_timeindex +add_library(cls_timeindex SHARED timeindex/cls_timeindex.cc) +set_target_properties(cls_timeindex PROPERTIES VERSION "1.0.0" SOVERSION "1") +install(TARGETS cls_timeindex DESTINATION lib/rados-classes) + +add_library(cls_timeindex_client timeindex/cls_timeindex_client.cc) + # cls_replica_log add_library(cls_replica_log SHARED replica_log/cls_replica_log.cc) set_target_properties(cls_replica_log PROPERTIES VERSION "1.0.0" SOVERSION "1") diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 8763f972f1cf..a2f216c5caa3 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -931,6 +931,7 @@ if(${WITH_RADOSGW}) cls_refcount_client cls_log_client cls_statelog_client + cls_timeindex_client cls_version_client cls_replica_log_client cls_kvs @@ -1017,6 +1018,7 @@ if(${WITH_RADOSGW}) cls_version_client cls_log_client cls_statelog_client + cls_timeindex_client cls_refcount_client cls_rgw_client cls_user_client