mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
77bd2624ea
* Fix building without submodules * Fix more gcc9 warnings * was wrong! ../dbms/src/IO/WriteBufferAIO.cpp:277:54: error: result of comparison 'ssize_t' (aka 'long') > 9223372036854775807 is always false [-Werror,-Wtautological-type-limit-compare] if ((static_cast<ssize_t>(flush_buffer.offset()) > std::numeric_limits<off_t>::max()) || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * mimalloc off MI_OVERRIDE * Fix freebsd build * Fix shared build * Fix build in gcc9 * Fix split build * fix * fix * fix * fix * clean * zstd * Update CMakeLists.txt * Update Defines.h * Try fix -Wsign-compare * Freebsd fix * Add missing libs * Fix double-conversion include for copy-headers * Fix zlib link * Fix includes for arcadia * Fix includes for arcadia * Fix includes for arcadia * Freebsd fix * Arcadia fixes * Update QueryProfiler.cpp * Freebsd fix * clean * 19.11: Fixes for arcadia porting (#6223) * fix glibc-compatibility * M_LIBRARY fix * wip * Fix * Fix arm build * unwind fix * Update CMakeLists.txt
38 lines
1.3 KiB
CMake
38 lines
1.3 KiB
CMake
set(BROTLI_SOURCE_DIR ${ClickHouse_SOURCE_DIR}/contrib/brotli/c)
|
|
set(BROTLI_BINARY_DIR ${ClickHouse_BINARY_DIR}/contrib/brotli/c)
|
|
|
|
set(SRCS
|
|
${BROTLI_SOURCE_DIR}/dec/bit_reader.c
|
|
${BROTLI_SOURCE_DIR}/dec/state.c
|
|
${BROTLI_SOURCE_DIR}/dec/huffman.c
|
|
${BROTLI_SOURCE_DIR}/dec/decode.c
|
|
${BROTLI_SOURCE_DIR}/enc/encode.c
|
|
${BROTLI_SOURCE_DIR}/enc/dictionary_hash.c
|
|
${BROTLI_SOURCE_DIR}/enc/cluster.c
|
|
${BROTLI_SOURCE_DIR}/enc/entropy_encode.c
|
|
${BROTLI_SOURCE_DIR}/enc/literal_cost.c
|
|
${BROTLI_SOURCE_DIR}/enc/compress_fragment_two_pass.c
|
|
${BROTLI_SOURCE_DIR}/enc/static_dict.c
|
|
${BROTLI_SOURCE_DIR}/enc/compress_fragment.c
|
|
${BROTLI_SOURCE_DIR}/enc/block_splitter.c
|
|
${BROTLI_SOURCE_DIR}/enc/backward_references_hq.c
|
|
${BROTLI_SOURCE_DIR}/enc/histogram.c
|
|
${BROTLI_SOURCE_DIR}/enc/brotli_bit_stream.c
|
|
${BROTLI_SOURCE_DIR}/enc/utf8_util.c
|
|
${BROTLI_SOURCE_DIR}/enc/encoder_dict.c
|
|
${BROTLI_SOURCE_DIR}/enc/backward_references.c
|
|
${BROTLI_SOURCE_DIR}/enc/bit_cost.c
|
|
${BROTLI_SOURCE_DIR}/enc/metablock.c
|
|
${BROTLI_SOURCE_DIR}/enc/memory.c
|
|
${BROTLI_SOURCE_DIR}/common/dictionary.c
|
|
${BROTLI_SOURCE_DIR}/common/transform.c
|
|
)
|
|
|
|
add_library(brotli ${SRCS})
|
|
|
|
target_include_directories(brotli PUBLIC ${BROTLI_SOURCE_DIR}/include)
|
|
|
|
if(M_LIBRARY)
|
|
target_link_libraries(brotli PRIVATE ${M_LIBRARY})
|
|
endif()
|