summaryrefslogtreecommitdiff
path: root/xdelta.cabal
blob: d54f3f6fefa4acd45470eb2586bda44d4cb43940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cabal-version:       2.2
name:                xdelta
version:             3.1.0
synopsis:            VCDIFF encoder/decoder.
-- description:
homepage:            xdelta.org
license:             Apache-2.0
license-file:        xdelta3/LICENSE
author:              Joe Crayne
maintainer:          joe@jerkface.net
category:            Data
build-type:          Simple

extra-source-files:  xdelta3/*.h xdelta3/*.c haskell/*.h

library
  exposed-modules:  Data.VCDIFF.Types
                  , Data.VCDIFF.XDelta
                  , Data.VCDIFF
                  , Data.Primitive.ByteArray.Util

  build-tools: hsc2hs
  include-dirs: haskell .
  cpp-options: -DNOT_MAIN=1 -DREGRESSION_TEST=1 -DSECONDARY_DJW=1 -DSECONDARY_FGK=1 -DXD3_MAIN=1 -DXD3_DEBUG=0 -DHAVE_CONFIG
  cxx-options: -Wno-literal-suffix -g
  cxx-sources: haskell/xdelta3.cc

  hs-source-dirs:      haskell
  build-depends:       base >=4.9, bytestring, text, primitive >=0.6.2, containers
  default-language:    Haskell2010
  ghc-options: -Wmissing-signatures

executable testdiff
  main-is: haskell/examples/testdiff.hs
  other-modules: Text.XXD
  hs-source-dirs: haskell/examples .
  build-depends: base, bytestring, memory, xdelta
  default-language:    Haskell2010