this target mirrors the "dist-server-debuginfo-{mode}" target in
the `build.ninja` created by `configure.py`.
Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
18 lines
650 B
CMake
18 lines
650 B
CMake
set(debuginfo_pkg
|
|
"${CMAKE_CURRENT_BINARY_DIR}/${Scylla_PRODUCT}-debuginfo-${Scylla_VERSION}-${Scylla_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}.tar.gz")
|
|
add_custom_command(
|
|
OUTPUT
|
|
${debuginfo_pkg}
|
|
COMMAND
|
|
${CMAKE_CURRENT_SOURCE_DIR}/scripts/create-relocatable-package.py
|
|
--build-dir ${CMAKE_BINARY_DIR}
|
|
--node-exporter-dir ${CMAKE_BINARY_DIR}/node_exporter
|
|
${debuginfo_pkg}
|
|
DEPENDS
|
|
${CMAKE_BINARY_DIR}/scylla.debug
|
|
${CMAKE_BINARY_DIR}/iotune.debug
|
|
${CMAKE_BINARY_DIR}/node_exporter/node_exporter.debug
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
|
add_custom_target(dist-server-debuginfo
|
|
DEPENDS ${debuginfo_pkg})
|