mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Merge pull request #38447 from ClickHouse/utility-self-extracting
Compress clickhouse executable
This commit is contained in:
commit
dd132d1beb
@ -18,6 +18,12 @@ option (ENABLE_CLICKHOUSE_SERVER "Server mode (main mode)" ${ENABLE_CLICKHOUSE_A
|
|||||||
option (ENABLE_CLICKHOUSE_CLIENT "Client mode (interactive tui/shell that connects to the server)"
|
option (ENABLE_CLICKHOUSE_CLIENT "Client mode (interactive tui/shell that connects to the server)"
|
||||||
${ENABLE_CLICKHOUSE_ALL})
|
${ENABLE_CLICKHOUSE_ALL})
|
||||||
|
|
||||||
|
if (CLICKHOUSE_SPLIT_BINARY OR NOT ENABLE_UTILS)
|
||||||
|
option (ENABLE_CLICKHOUSE_SELF_EXTRACTING "Self-extracting executable" OFF)
|
||||||
|
else ()
|
||||||
|
option (ENABLE_CLICKHOUSE_SELF_EXTRACTING "Self-extracting executable" ON)
|
||||||
|
endif ()
|
||||||
|
|
||||||
# https://clickhouse.com/docs/en/operations/utilities/clickhouse-local/
|
# https://clickhouse.com/docs/en/operations/utilities/clickhouse-local/
|
||||||
option (ENABLE_CLICKHOUSE_LOCAL "Local files fast processing mode" ${ENABLE_CLICKHOUSE_ALL})
|
option (ENABLE_CLICKHOUSE_LOCAL "Local files fast processing mode" ${ENABLE_CLICKHOUSE_ALL})
|
||||||
|
|
||||||
@ -101,6 +107,12 @@ else()
|
|||||||
message(STATUS "Local mode: OFF")
|
message(STATUS "Local mode: OFF")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_CLICKHOUSE_SELF_EXTRACTING)
|
||||||
|
message(STATUS "Self-extracting executable: ON")
|
||||||
|
else()
|
||||||
|
message(STATUS "Self-extracting executable: OFF")
|
||||||
|
endif()
|
||||||
|
|
||||||
if (ENABLE_CLICKHOUSE_BENCHMARK)
|
if (ENABLE_CLICKHOUSE_BENCHMARK)
|
||||||
message(STATUS "Benchmark mode: ON")
|
message(STATUS "Benchmark mode: ON")
|
||||||
else()
|
else()
|
||||||
@ -266,6 +278,10 @@ if (ENABLE_CLICKHOUSE_LIBRARY_BRIDGE)
|
|||||||
add_subdirectory (library-bridge)
|
add_subdirectory (library-bridge)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (ENABLE_CLICKHOUSE_SELF_EXTRACTING)
|
||||||
|
add_subdirectory (self-extracting)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (CLICKHOUSE_ONE_SHARED)
|
if (CLICKHOUSE_ONE_SHARED)
|
||||||
add_library(clickhouse-lib SHARED
|
add_library(clickhouse-lib SHARED
|
||||||
${CLICKHOUSE_SERVER_SOURCES}
|
${CLICKHOUSE_SERVER_SOURCES}
|
||||||
|
6
programs/self-extracting/CMakeLists.txt
Normal file
6
programs/self-extracting/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
add_custom_target (self-extracting ALL
|
||||||
|
${CMAKE_COMMAND} -E remove clickhouse
|
||||||
|
COMMAND ${CMAKE_BINARY_DIR}/utils/self-extracting-executable/compressor clickhouse ../clickhouse
|
||||||
|
DEPENDS clickhouse compressor
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user