568b297e65c0750d3f7153bbf8a3ae5757b1183a
[ghc.git] / hadrian.cabal
1 name:                hadrian
2 version:             0.1.0.0
3 synopsis:            GHC build system
4 license:             BSD3
5 license-file:        LICENSE
6 author:              Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
7 maintainer:          Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
8 copyright:           Andrey Mokhov 2014-2017
9 category:            Development
10 build-type:          Simple
11 cabal-version:       >=1.10
12
13 source-repository head
14     type:     git
15     location: https://github.com/snowleopard/hadrian
16
17 executable hadrian
18     main-is:             Main.hs
19     hs-source-dirs:      .
20                        , src
21     other-modules:       Base
22                        , Builder
23                        , CommandLine
24                        , Context
25                        , Environment
26                        , Expression
27                        , Flavour
28                        , GHC
29                        , Hadrian.Builder
30                        , Hadrian.Builder.Ar
31                        , Hadrian.Builder.Tar
32                        , Hadrian.Expression
33                        , Hadrian.Haskell.Cabal
34                        , Hadrian.Haskell.Cabal.Parse
35                        , Hadrian.Oracles.ArgsHash
36                        , Hadrian.Oracles.DirectoryContents
37                        , Hadrian.Oracles.Path
38                        , Hadrian.Oracles.TextFile
39                        , Hadrian.Package
40                        , Hadrian.Target
41                        , Hadrian.Utilities
42                        , Oracles.Flag
43                        , Oracles.Setting
44                        , Oracles.ModuleFiles
45                        , Oracles.PackageData
46                        , Rules
47                        , Rules.Clean
48                        , Rules.Compile
49                        , Rules.Configure
50                        , Rules.PackageData
51                        , Rules.Dependencies
52                        , Rules.Documentation
53                        , Rules.Generate
54                        , Rules.Gmp
55                        , Rules.Install
56                        , Rules.Libffi
57                        , Rules.Library
58                        , Rules.Program
59                        , Rules.Register
60                        , Rules.Selftest
61                        , Rules.SourceDist
62                        , Rules.Test
63                        , Rules.Wrappers
64                        , Settings
65                        , Settings.Builders.Alex
66                        , Settings.Builders.Common
67                        , Settings.Builders.Cc
68                        , Settings.Builders.Configure
69                        , Settings.Builders.DeriveConstants
70                        , Settings.Builders.GenPrimopCode
71                        , Settings.Builders.Ghc
72                        , Settings.Builders.GhcCabal
73                        , Settings.Builders.GhcPkg
74                        , Settings.Builders.Haddock
75                        , Settings.Builders.Happy
76                        , Settings.Builders.Hsc2Hs
77                        , Settings.Builders.HsCpp
78                        , Settings.Builders.Ld
79                        , Settings.Builders.Make
80                        , Settings.Builders.Sphinx
81                        , Settings.Builders.Xelatex
82                        , Settings.Default
83                        , Settings.Flavours.Development
84                        , Settings.Flavours.Performance
85                        , Settings.Flavours.Profiled
86                        , Settings.Flavours.Quick
87                        , Settings.Flavours.QuickCross
88                        , Settings.Flavours.Quickest
89                        , Settings.Packages.Base
90                        , Settings.Packages.Cabal
91                        , Settings.Packages.Compiler
92                        , Settings.Packages.Ghc
93                        , Settings.Packages.GhcCabal
94                        , Settings.Packages.Ghci
95                        , Settings.Packages.GhcPkg
96                        , Settings.Packages.GhcPrim
97                        , Settings.Packages.Haddock
98                        , Settings.Packages.Haskeline
99                        , Settings.Packages.IntegerGmp
100                        , Settings.Packages.Rts
101                        , Settings.Packages.RunGhc
102                        , Stage
103                        , Target
104                        , UserSettings
105                        , Utilities
106                        , Way
107     default-language:    Haskell2010
108     default-extensions:  DeriveFunctor
109                        , DeriveGeneric
110                        , FlexibleInstances
111                        , GeneralizedNewtypeDeriving
112                        , LambdaCase
113                        , RecordWildCards
114                        , ScopedTypeVariables
115                        , TupleSections
116     other-extensions:    MultiParamTypeClasses
117                        , TypeFamilies
118     build-depends:       base >= 4.8 && < 5
119                        , ansi-terminal        == 0.6.*
120                        , Cabal                == 2.0.0.2
121                        , containers           == 0.5.*
122                        , directory            >= 1.2 && < 1.4
123                        , extra                >= 1.4.7
124                        , mtl                  == 2.2.*
125                        , QuickCheck           >= 2.6 && < 2.10
126                        , shake                == 0.16.*
127                        , transformers         >= 0.4 && < 0.6
128                        , unordered-containers == 0.2.*
129     build-tools:         alex  >= 3.1
130                        , happy >= 1.19.4
131     ghc-options:       -Wall
132                        -Wincomplete-record-updates
133                        -Wredundant-constraints
134                        -fno-warn-name-shadowing
135                        -rtsopts
136                        -- * -I0: Disable idle GC to avoid redundant GCs while
137                        --        waiting for external processes
138                        -- * -qg: Don't use parallel GC as the synchronization
139                        --        time tends to eat any benefit.
140                        "-with-rtsopts=-I0 -qg"
141                        -threaded