cabal-version:       2.2
name:                xz-clib
version:             5.8.0

synopsis:            LZMA/XZ clibs
description:         C source code for the LZMA/XZ compression and decompression library
homepage:            https://github.com/hasufell/lzma-static
bug-reports:         https://github.com/hasufell/lzma-static/issues
license:             0BSD
license-file:        cbits/LICENSE
author:              Julian Ospald
maintainer:          hasufell@posteo.de
copyright:           (c) 2021 Julian Ospald
stability:           experimental
category:            Codec, Compression
build-type:          Configure

extra-doc-files:
  Changelog.md

extra-source-files:
  cbits/common/*.c
  cbits/common/*.h
  cbits/liblzma/api/lzma.h
  cbits/liblzma/api/lzma/*.h
  cbits/liblzma/check/*.c
  cbits/liblzma/check/*.h
  cbits/liblzma/common/*.c
  cbits/liblzma/common/*.h
  cbits/liblzma/delta/*.c
  cbits/liblzma/delta/*.h
  cbits/liblzma/lz/*.c
  cbits/liblzma/lz/*.h
  cbits/liblzma/lzma/*.c
  cbits/liblzma/lzma/*.h
  cbits/liblzma/rangecoder/*.c
  cbits/liblzma/rangecoder/*.h
  cbits/liblzma/simple/*.c
  cbits/liblzma/simple/*.h
  cbits/config.h.in
  build/autoconf/config.guess
  build/autoconf/config.rpath
  build/autoconf/config.sub
  build/autoconf/install-sh
  build/autoconf/ltmain.sh
  configure

source-repository head
  type:     git
  location: https://github.com/hasufell/lzma-static.git
  subdir: xz-clib

library
  default-language:    Haskell2010
  c-sources:
    cbits/common/tuklib_cpucores.c
    cbits/common/tuklib_mbstr_nonprint.c
    cbits/common/tuklib_mbstr_wrap.c
    cbits/common/tuklib_physmem.c
    cbits/liblzma/check/check.c
    cbits/liblzma/check/crc32_fast.c
    cbits/liblzma/check/crc64_fast.c
    cbits/liblzma/check/crc_clmul_consts_gen.c
    cbits/liblzma/check/sha256.c
    cbits/liblzma/common/alone_decoder.c
    cbits/liblzma/common/alone_encoder.c
    cbits/liblzma/common/auto_decoder.c
    cbits/liblzma/common/block_buffer_decoder.c
    cbits/liblzma/common/block_buffer_encoder.c
    cbits/liblzma/common/block_decoder.c
    cbits/liblzma/common/block_encoder.c
    cbits/liblzma/common/block_header_decoder.c
    cbits/liblzma/common/block_header_encoder.c
    cbits/liblzma/common/block_util.c
    cbits/liblzma/common/common.c
    cbits/liblzma/common/easy_buffer_encoder.c
    cbits/liblzma/common/easy_decoder_memusage.c
    cbits/liblzma/common/easy_encoder.c
    cbits/liblzma/common/easy_encoder_memusage.c
    cbits/liblzma/common/easy_preset.c
    cbits/liblzma/common/file_info.c
    cbits/liblzma/common/filter_buffer_decoder.c
    cbits/liblzma/common/filter_buffer_encoder.c
    cbits/liblzma/common/filter_common.c
    cbits/liblzma/common/filter_decoder.c
    cbits/liblzma/common/filter_encoder.c
    cbits/liblzma/common/filter_flags_decoder.c
    cbits/liblzma/common/filter_flags_encoder.c
    cbits/liblzma/common/hardware_cputhreads.c
    cbits/liblzma/common/hardware_physmem.c
    cbits/liblzma/common/index.c
    cbits/liblzma/common/index_decoder.c
    cbits/liblzma/common/index_encoder.c
    cbits/liblzma/common/index_hash.c
    cbits/liblzma/common/lzip_decoder.c
    cbits/liblzma/common/microlzma_decoder.c
    cbits/liblzma/common/microlzma_encoder.c
    cbits/liblzma/common/outqueue.c
    cbits/liblzma/common/stream_buffer_decoder.c
    cbits/liblzma/common/stream_buffer_encoder.c
    cbits/liblzma/common/stream_decoder.c
    cbits/liblzma/common/stream_decoder_mt.c
    cbits/liblzma/common/stream_encoder.c
    cbits/liblzma/common/stream_encoder_mt.c
    cbits/liblzma/common/stream_flags_common.c
    cbits/liblzma/common/stream_flags_decoder.c
    cbits/liblzma/common/stream_flags_encoder.c
    cbits/liblzma/common/string_conversion.c
    cbits/liblzma/common/vli_decoder.c
    cbits/liblzma/common/vli_encoder.c
    cbits/liblzma/common/vli_size.c
    cbits/liblzma/delta/delta_common.c
    cbits/liblzma/delta/delta_decoder.c
    cbits/liblzma/delta/delta_encoder.c
    cbits/liblzma/lz/lz_decoder.c
    cbits/liblzma/lz/lz_encoder.c
    cbits/liblzma/lz/lz_encoder_mf.c
    cbits/liblzma/lzma/fastpos_table.c
    cbits/liblzma/lzma/lzma2_decoder.c
    cbits/liblzma/lzma/lzma2_encoder.c
    cbits/liblzma/lzma/lzma_decoder.c
    cbits/liblzma/lzma/lzma_encoder.c
    cbits/liblzma/lzma/lzma_encoder_optimum_fast.c
    cbits/liblzma/lzma/lzma_encoder_optimum_normal.c
    cbits/liblzma/lzma/lzma_encoder_presets.c
    cbits/liblzma/rangecoder/price_table.c
    cbits/liblzma/simple/arm.c
    cbits/liblzma/simple/arm64.c
    cbits/liblzma/simple/armthumb.c
    cbits/liblzma/simple/ia64.c
    cbits/liblzma/simple/powerpc.c
    cbits/liblzma/simple/riscv.c
    cbits/liblzma/simple/simple_coder.c
    cbits/liblzma/simple/simple_decoder.c
    cbits/liblzma/simple/simple_encoder.c
    cbits/liblzma/simple/sparc.c
    cbits/liblzma/simple/x86.c

  include-dirs:
    cbits/liblzma/api
    cbits/liblzma/common
    cbits/liblzma/check
    cbits/liblzma/delta
    cbits/liblzma/lz
    cbits/liblzma/lzma
    cbits/liblzma/rangecoder
    cbits/liblzma/simple
    cbits/common
    cbits/

  install-includes:
    lzma.h
    lzma/base.h
    lzma/bcj.h
    lzma/block.h
    lzma/check.h
    lzma/container.h
    lzma/delta.h
    lzma/filter.h
    lzma/hardware.h
    lzma/index.h
    lzma/index_hash.h
    lzma/lzma12.h
    lzma/stream_flags.h
    lzma/version.h
    lzma/vli.h

  cc-options: -std=gnu99 -DHAVE_CONFIG_H -DTUKLIB_SYMBOL_PREFIX=lzma_