summaryrefslogtreecommitdiff
path: root/xdelta3.cabal
blob: bc8a81bf265c6095de015a210140006bcb631662 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
cabal-version:       2.2
name:                xdelta
version:             3.2.0
synopsis:            VCDIFF encoder/decoder.
-- description:
homepage:            xdelta.org
license:             Apache-2.0
license-file:        xdelta3/LICENSE
author:              Josh MacDonald
maintainer:          josh.macdonald@gmail.com
-- copyright:
category:            Data
-- build-type:          Custom
build-type:          Simple

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

library
  exposed-modules:  XDelta.Types
                  , Data.XDelta
                  , Data.BA

  build-tools: hsc2hs
  -- include-dirs: xdelta3 xdelta3_lib
  -- extra-lib-dirs: xdelta3_lib
  include-dirs: haskell .
  -- cc-options:  -std=c++14 -Wno-literal-suffix
  cxx-options: -Wno-literal-suffix -g
  cpp-options: -DNOT_MAIN=1 -DREGRESSION_TEST=1 -DSECONDARY_DJW=1 -DSECONDARY_FGK=1 -DXD3_MAIN=1 -DXD3_DEBUG=0 -DHAVE_CONFIG
  --  cpp-options: -DHAVE_CONFIG_H -DSIZEOF_SIZE_T=__SIZEOF_SIZE_T__ -DSIZEOF_UNSIGNED_INT=__SIZEOF_INT__ -DSIZEOF_UNSIGNED_LONG=__SIZEOF_LONG__
  -- cpp-options: -DSIZEOF_UNSIGNED_LONG_LONG=__SIZEOF_LONG_LONG__
  -- -DHAVE_CONFIG_H=1
  -- -include xdelta3/build2/config.h -Wall -Wshadow -fno-builtin -Wextra -Wsign-compare -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter -Wno-unused-function extra-libraries: xdelta3, lzma, stdc++, m
  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: examples/testdiff.hs
  other-modules: Text.XXD
  hs-source-dirs: haskell examples .
  build-depends: base, bytestring, memory, xdelta

executable lazy
  main-is: lazy.hs
  other-modules: Text.XXD
  hs-source-dirs: haskell examples .
  build-depends: base, bytestring, memory, xdelta