Signed-off-by: John Spray <john.spray@redhat.com>
#option for CephFS
option(WITH_CEPHFS "CephFS is enabled" ON)
+#option for Mgr
+option(WITH_MGR "ceph-mgr is enabled" ON)
+if(WITH_MGR)
+ set(Python_ADDITIONAL_VERSIONS 2.7)
+ find_package(PythonLibs 2.7 REQUIRED)
+ find_package(Boost COMPONENTS python REQUIRED)
+endif(WITH_MGR)
+
option(WITH_THREAD_SAFE_RES_QUERY "res_query is thread safe" OFF)
if(WITH_THREAD_SAFE_RES_QUERY)
set(HAVE_THREAD_SAFE_RES_QUERY 1 CACHE INTERNAL "Thread safe res_query supported.")
mon/MonCap.cc
mon/MonClient.cc
mon/MonMap.cc
+ mgr/MgrClient.cc
msg/simple/Accepter.cc
msg/DispatchQueue.cc
msg/Message.cc
add_subdirectory(librados)
add_subdirectory(libradosstriper)
+if (WITH_MGR)
+ set(mgr_srcs
+ ceph_mgr.cc
+ mgr/DaemonMetadata.cc
+ mgr/DaemonServer.cc
+ mgr/ClusterState.cc
+ mgr/PyModules.cc
+ mgr/PyFormatter.cc
+ mgr/PyState.cc
+ mgr/MgrPyModule.cc
+ mgr/Mgr.cc)
+ add_executable(ceph-mgr ${mgr_srcs}
+ $<TARGET_OBJECTS:heap_profiler_objs>)
+ target_include_directories(ceph-mgr PRIVATE "${PYTHON_INCLUDE_DIRS}")
+ target_link_libraries(ceph-mgr mds osdc global
+ -lboost_python ${PYTHON_LIBRARIES} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${TCMALLOC_LIBS})
+endif (WITH_MGR)
+
set(librados_config_srcs
librados-config.cc)
add_executable(librados-config ${librados_config_srcs})
add_custom_target(vstart DEPENDS
ceph-osd
ceph-mon
+ ceph-mgr
ceph-authtool
ceph-conf
monmaptool
PaxosService.cc
OSDMonitor.cc
MDSMonitor.cc
+ MgrMonitor.cc
MonmapMonitor.cc
LogMonitor.cc
AuthMonitor.cc