2021-04-24 19:47:52 +00:00
|
|
|
set(BROTLI_SOURCE_DIR "${ClickHouse_SOURCE_DIR}/contrib/brotli/c")
|
|
|
|
set(BROTLI_BINARY_DIR "${ClickHouse_BINARY_DIR}/contrib/brotli/c")
|
2019-02-02 13:33:50 +00:00
|
|
|
|
|
|
|
set(SRCS
|
2021-04-24 19:47:52 +00:00
|
|
|
"${BROTLI_SOURCE_DIR}/enc/command.c"
|
|
|
|
"${BROTLI_SOURCE_DIR}/enc/fast_log.c"
|
|
|
|
"${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"
|
|
|
|
"${BROTLI_SOURCE_DIR}/common/platform.c"
|
|
|
|
"${BROTLI_SOURCE_DIR}/common/context.c"
|
|
|
|
"${BROTLI_SOURCE_DIR}/common/constants.c"
|
2019-02-02 13:33:50 +00:00
|
|
|
)
|
|
|
|
|
2019-04-24 09:06:28 +00:00
|
|
|
add_library(brotli ${SRCS})
|
2019-02-02 14:17:51 +00:00
|
|
|
|
2021-04-24 19:47:52 +00:00
|
|
|
target_include_directories(brotli PUBLIC "${BROTLI_SOURCE_DIR}/include")
|
2019-08-04 00:19:03 +00:00
|
|
|
|
|
|
|
if(M_LIBRARY)
|
|
|
|
target_link_libraries(brotli PRIVATE ${M_LIBRARY})
|
|
|
|
endif()
|