mirror of
https://github.com/ceph/ceph
synced 2024-12-30 07:23:11 +00:00
4b69d3a184
* This commit introduces Jaegertracing library as package libjaeger, pickwhich would be consumed by other ceph pacakges such as ceph-common0 * adds the following dependencies, which would be build from source using ExternalProjectHelper.cmake +IncludeJaeger.cmake + Build<package>.cmake scripts: jaegertracing: v0.6.0 [added as a submodule] opentracing: v1.6.0 [added as a submodule] thrift: 0.13.0 [added as a submodule] yaml-cpp: 0.6.0 json(optional) * updates Boost to be installed instead of being build only, because jaegertracing them during their build process. * ceph.spec.in: introduces a default enabled jaeger packaging option, which could be disabled using --without-jaeger flag during rpmbuild * note: libjaeger package if enabled will be a dependency on ceph-common, ceph-mon, rgw_common and transitively will be a dependency for modules that have them as a dependency. Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
37 lines
1.3 KiB
CMake
37 lines
1.3 KiB
CMake
function(build_yamlcpp)
|
|
set(yaml-cpp_DOWNLOAD_DIR "${CMAKE_SOURCE_DIR}/src/jaegertracing")
|
|
set(yaml-cpp_SOURCE_DIR "${CMAKE_SOURCE_DIR}/src/jaegertracing/yaml-cpp")
|
|
set(yaml-cpp_BINARY_DIR "${CMAKE_BINARY_DIR}/external/yaml-cpp")
|
|
|
|
set(yaml-cpp_CMAKE_ARGS -DBUILD_SHARED_LIBS=ON
|
|
-DYAML_CPP_BUILD_TESTS=OFF
|
|
-DYAML_CPP_BUILD_CONTRIB=OFF
|
|
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/external
|
|
-DCMAKE_INSTALL_RPATH=${CMAKE_BINARY_DIR}/external/lib
|
|
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE
|
|
-DCMAKE_INSTALL_LIBDIR=${CMAKE_BINARY_DIR}/external/lib
|
|
-DCMAKE_PREFIX_PATH=${CMAKE_BINARY_DIR}/external)
|
|
|
|
if(CMAKE_MAKE_PROGRAM MATCHES "make")
|
|
# try to inherit command line arguments passed by parent "make" job
|
|
set(make_cmd "$(MAKE)")
|
|
else()
|
|
set(make_cmd ${CMAKE_COMMAND} --build <BINARY_DIR> --target yaml-cpp)
|
|
endif()
|
|
set(install_cmd $(MAKE) install DESTDIR=)
|
|
|
|
include(ExternalProject)
|
|
ExternalProject_Add(yaml-cpp
|
|
GIT_REPOSITORY "https://github.com/jbeder/yaml-cpp.git"
|
|
GIT_TAG "yaml-cpp-0.6.2"
|
|
UPDATE_COMMAND ""
|
|
INSTALL_DIR "${CMAKE_BINARY_DIR}/external"
|
|
DOWNLOAD_DIR ${yaml-cpp_DOWNLOAD_DIR}
|
|
SOURCE_DIR ${yaml-cpp_SOURCE_DIR}
|
|
PREFIX "${CMAKE_BINARY_DIR}/external/yaml-cpp"
|
|
CMAKE_ARGS ${yaml-cpp_CMAKE_ARGS}
|
|
BUILD_COMMAND ${make_cmd}
|
|
INSTALL_COMMAND ${install_cmd}
|
|
)
|
|
endfunction()
|