Put program behind flag
Getty Ritter
8 years ago
1 | -- Initial eben.cabal generated by cabal init. For further documentation, | |
2 | -- see http://haskell.org/cabal/users-guide/ | |
3 | ||
4 | 1 | name: eben |
5 | 2 | version: 0.1.0.0 |
6 | -- synopsis: | |
7 | -- description: | |
3 | -- synopsis: | |
4 | -- description: | |
8 | 5 | license: BSD3 |
9 | 6 | license-file: LICENSE |
10 | 7 | author: Getty Ritter |
11 | 8 | maintainer: gdritter@galois.com |
12 |
-- copyright: |
|
9 | -- copyright: | |
13 | 10 | category: Data |
14 | 11 | build-type: Simple |
15 |
-- extra-source-files: |
|
12 | -- extra-source-files: | |
16 | 13 | cabal-version: >=1.10 |
14 | ||
15 | flag build-programs | |
16 | description: Build helper programs | |
17 | default: False | |
17 | 18 | |
18 | 19 | library |
19 | 20 | exposed-modules: Data.Eben |
20 | 21 | -- other-modules: |
21 | 22 | -- other-extensions: |
22 |
build-depends: base >=4.8 && <4.9, |
|
23 | build-depends: base >=4.8 && <4.9, | |
24 | bytestring, | |
25 | containers, | |
26 | cereal | |
23 | 27 | -- hs-source-dirs: |
24 | 28 | default-language: Haskell2010 |
25 | 29 | |
26 | 30 | executable json2eben |
31 | if !flag(build-programs) | |
32 | buildable: False | |
27 | 33 | hs-source-dirs: json2eben |
28 | 34 | main-is: Main.hs |
29 | 35 | default-extensions: OverloadedStrings, ScopedTypeVariables |
30 |
build-depends: base >=4.8 && <4.9, |
|
36 | build-depends: base >=4.8 && <4.9, | |
37 | eben, | |
38 | aeson, | |
39 | scientific, | |
40 | vector, | |
41 | text, | |
42 | bytestring, | |
43 | containers, | |
44 | unordered-containers | |
31 | 45 | default-language: Haskell2010 |