packages feed

ktx-codec-0.1.0.0: ktx-codec.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.38.1.
--
-- see: https://github.com/sol/hpack

name:           ktx-codec
version:        0.1.0.0
synopsis:       Khronos texture format
description:    This package implements low-level encoding and decoding for .ktx and .ktx2 files.
                .
                A framework-specific wrapper may be needed to work with the decoded data and/or supercompression.
                Check out test/Spec.hs for usage examples.
                .
                KTX 1: https://registry.khronos.org/KTX/specs/1.0/ktxspec.v1.html
                .
                KTX 2: https://registry.khronos.org/KTX/specs/2.0/ktxspec.v2.html#_abstract
category:       Graphics
author:         IC Rainbow
maintainer:     aenor.realm@gmail.com
copyright:      2025 IC Rainbow
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    ChangeLog.md

source-repository head
  type: git
  location: https://gitlab.com/dpwiz/ktx

flag tests
  manual: True
  default: False

library
  exposed-modules:
      Codec.Ktx
      Codec.Ktx.KeyValue
      Codec.Ktx2
      Codec.Ktx2.DFD
      Codec.Ktx2.DFD.Khronos.BasicV2
      Codec.Ktx2.Header
      Codec.Ktx2.Level
      Codec.Ktx2.Read
      Codec.Ktx2.Write
  other-modules:
      Paths_ktx_codec
  hs-source-dirs:
      src
  default-extensions:
      ApplicativeDo
      BlockArguments
      DeriveGeneric
      FlexibleContexts
      GeneralizedNewtypeDeriving
      ImportQualifiedPost
      LambdaCase
      NamedFieldPuns
      OverloadedStrings
      PatternSynonyms
      RecordWildCards
      StrictData
      TypeApplications
  ghc-options: -Wall
  build-depends:
      base >=4.7 && <5
    , binary >=0.8.7 && <1
    , bytestring >=0.10 && <0.14
    , containers >=0.6 && <1
    , text >=1.2 && <3
    , vector >=0.12 && <0.14
  default-language: Haskell2010

test-suite ktx-codec-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_ktx_codec
  hs-source-dirs:
      test
  default-extensions:
      ApplicativeDo
      BlockArguments
      DeriveGeneric
      FlexibleContexts
      GeneralizedNewtypeDeriving
      ImportQualifiedPost
      LambdaCase
      NamedFieldPuns
      OverloadedStrings
      PatternSynonyms
      RecordWildCards
      StrictData
      TypeApplications
  ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , binary >=0.8.7 && <1
    , bytestring >=0.10 && <0.14
    , containers >=0.6 && <1
    , directory >=1.3 && <2
    , filepath >=1.4 && <2
    , ktx-codec
    , shower >=0.2 && <1
    , tasty
    , tasty-hunit
    , text >=1.2 && <3
    , vector >=0.12 && <0.14
    , zstd
  default-language: Haskell2010
  if !flag(tests)
    buildable: False