diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
commit | b4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch) | |
tree | 6a64ab25a145265287789bceed3f59e953561206 /contrib/libs/xz | |
parent | 5e837a820d5be0671fa4096a1cc1e378453e5132 (diff) | |
download | ydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz |
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'contrib/libs/xz')
-rw-r--r-- | contrib/libs/xz/common/CMakeLists.txt | 15 | ||||
-rw-r--r-- | contrib/libs/xz/liblzma/CMakeLists.txt | 99 |
2 files changed, 114 insertions, 0 deletions
diff --git a/contrib/libs/xz/common/CMakeLists.txt b/contrib/libs/xz/common/CMakeLists.txt new file mode 100644 index 0000000000..a93d4b8821 --- /dev/null +++ b/contrib/libs/xz/common/CMakeLists.txt @@ -0,0 +1,15 @@ +add_library(libs-xz-common) +target_compile_options(libs-xz-common PRIVATE + -DTUKLIB_SYMBOL_PREFIX=lzma_ +) +target_include_directories(libs-xz-common PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/xz + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/common +) +target_link_libraries(libs-xz-common PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(libs-xz-common PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/common/tuklib_cpucores.c +) diff --git a/contrib/libs/xz/liblzma/CMakeLists.txt b/contrib/libs/xz/liblzma/CMakeLists.txt new file mode 100644 index 0000000000..445f4d3330 --- /dev/null +++ b/contrib/libs/xz/liblzma/CMakeLists.txt @@ -0,0 +1,99 @@ +add_library(libs-xz-liblzma) +target_compile_options(libs-xz-liblzma PUBLIC + -DLZMA_API_STATIC +) +target_compile_options(libs-xz-liblzma PRIVATE + -DHAVE_CONFIG_H + -DTUKLIB_SYMBOL_PREFIX=lzma_ +) +target_include_directories(libs-xz-liblzma PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/api +) +target_include_directories(libs-xz-liblzma PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/api + ${CMAKE_SOURCE_DIR}/contrib/libs/xz + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/delta + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lz + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/rangecoder + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/common +) +target_link_libraries(libs-xz-liblzma PUBLIC + contrib-libs-cxxsupp + libs-xz-common +) +target_sources(libs-xz-liblzma PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/check.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/crc32_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/crc32_table.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/crc64_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/crc64_table.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/sha256.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/alone_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/alone_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/auto_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_buffer_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_buffer_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_header_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_header_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_util.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_buffer_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_decoder_memusage.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_encoder_memusage.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_preset.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_buffer_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_buffer_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_flags_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_flags_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/hardware_cputhreads.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/index.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/index_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/index_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/index_hash.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/outqueue.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_buffer_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_buffer_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_encoder_mt.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_flags_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_flags_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_flags_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/vli_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/vli_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/vli_size.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/delta/delta_common.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/delta/delta_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/delta/delta_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lz/lz_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lz/lz_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lz/lz_encoder_mf.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/fastpos_table.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma2_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma2_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_encoder_optimum_fast.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_encoder_optimum_normal.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_encoder_presets.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/rangecoder/price_table.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/arm.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/armthumb.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/ia64.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/powerpc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/simple_coder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/simple_decoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/simple_encoder.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/sparc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/x86.c +) |