Add test-data to sdist
[hsc2hs.git] / hsc2hs.cabal
1 Name: hsc2hs
2 Version: 0.68.3
3 Copyright: 2000, Marcin Kowalczyk
4 License: BSD3
5 License-File: LICENSE
6 Author: Marcin Kowalczyk <qrczak@knm.org.pl>
7 Maintainer: ghc-devs@haskell.org
8 Synopsis: A preprocessor that helps with writing Haskell bindings to C code
9 Bug-Reports: https://ghc.haskell.org/trac/ghc/newticket?component=hsc2hs
10 Description:
11     The hsc2hs program can be used to automate some parts of the
12     process of writing Haskell bindings to C code.  It reads an
13     almost-Haskell source file with embedded special constructs, and
14     outputs a real Haskell file with these constructs processed, based
15     on information taken from some C headers.  The extra constructs
16     provide Haskell counterparts of C types, values of C constants,
17     including sizes of C types, and access to fields of C structs.
18     .
19     For more details, see the
20     <http://downloads.haskell.org/~ghc/master/users-guide/utils.html#writing-haskell-interfaces-to-c-code-hsc2hs hsc2hs section>
21     in the GHC User's Guide.
22 Category: Development
23 Data-Files: template-hsc.h
24 build-type: Simple
25 cabal-version: >=1.10
26 tested-with: GHC==8.2.1, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4
27
28 extra-source-files:
29   changelog.md
30   test/asm/*.s
31
32 flag in-ghc-tree
33   description: Are we in a GHC tree?
34   default: False
35   manual: True
36
37 source-repository head
38     Type: git
39     Location: http://git.haskell.org/hsc2hs.git
40
41 Executable hsc2hs
42     Default-Language: Haskell2010
43     Main-Is: Main.hs
44     Other-Modules:
45         C
46         Common
47         CrossCodegen
48         DirectCodegen
49         Flags
50         HSCParser
51         ATTParser
52         UtilsCodegen
53         Paths_hsc2hs
54
55     Other-Extensions: CPP, NoMonomorphismRestriction
56
57     Build-Depends: base       >= 4   && < 5,
58                    containers >= 0.2 && < 0.6,
59                    directory  >= 1   && < 1.4,
60                    filepath   >= 1   && < 1.5,
61                    process    >= 1.1 && < 1.7
62     if flag(in-ghc-tree)
63        cpp-options: -DIN_GHC_TREE
64
65 test-suite spec
66   main-is:           Spec.hs
67   hs-source-dirs:    .
68   other-modules:     ATTParser
69   ghc-options:       -Wall -threaded
70   type:              exitcode-stdio-1.0
71   build-depends:       base
72                      , tasty
73                      , tasty-hspec
74   default-language: Haskell2010