hadrian.cabal 6.2 KB
Newer Older
Andrey Mokhov's avatar
Andrey Mokhov committed
1
name:                hadrian
2
3
4
5
version:             0.1.0.0
synopsis:            GHC build system
license:             BSD3
license-file:        LICENSE
Andrey Mokhov's avatar
Andrey Mokhov committed
6
7
author:              Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
maintainer:          Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
Andrey Mokhov's avatar
Andrey Mokhov committed
8
copyright:           Andrey Mokhov 2014-2016
9
10
11
12
13
14
category:            Development
build-type:          Simple
cabal-version:       >=1.10

source-repository head
    type:     git
Andrey Mokhov's avatar
Andrey Mokhov committed
15
    location: https://github.com/snowleopard/hadrian
16

17
executable hadrian
18
    main-is:             Main.hs
kaiha's avatar
kaiha committed
19
20
    hs-source-dirs:      .
                       , src
21
22
    other-modules:       Base
                       , Builder
Andrey Mokhov's avatar
Andrey Mokhov committed
23
                       , CmdLineFlag
24
                       , Context
25
                       , Environment
26
                       , Expression
Andrey Mokhov's avatar
Andrey Mokhov committed
27
                       , Flavour
28
                       , GHC
29
30
                       , Hadrian.Expression
                       , Hadrian.Target
31
32
33
34
35
                       , Oracles.ArgsHash
                       , Oracles.Config
                       , Oracles.Config.Flag
                       , Oracles.Config.Setting
                       , Oracles.Dependencies
Andrey Mokhov's avatar
Andrey Mokhov committed
36
                       , Oracles.DirectoryContents
37
38
                       , Oracles.ModuleFiles
                       , Oracles.PackageData
39
                       , Oracles.Path
40
                       , Package
41
                       , Predicate
42
43
                       , Rules
                       , Rules.Cabal
Andrey Mokhov's avatar
Andrey Mokhov committed
44
                       , Rules.Clean
45
                       , Rules.Compile
46
                       , Rules.Configure
47
48
49
50
                       , Rules.Data
                       , Rules.Dependencies
                       , Rules.Documentation
                       , Rules.Generate
51
                       , Rules.Generators.Common
52
                       , Rules.Generators.ConfigHs
53
54
55
                       , Rules.Generators.GhcAutoconfH
                       , Rules.Generators.GhcBootPlatformH
                       , Rules.Generators.GhcPlatformH
56
                       , Rules.Generators.GhcSplit
57
                       , Rules.Generators.GhcVersionH
58
                       , Rules.Generators.VersionHs
59
                       , Rules.Gmp
Zhen Zhang's avatar
Zhen Zhang committed
60
                       , Rules.Install
Andrey Mokhov's avatar
Andrey Mokhov committed
61
                       , Rules.Libffi
62
63
                       , Rules.Library
                       , Rules.Oracles
Moritz Angermann's avatar
Moritz Angermann committed
64
                       , Rules.Perl
65
                       , Rules.Program
66
                       , Rules.Register
67
                       , Rules.Selftest
kaiha's avatar
kaiha committed
68
                       , Rules.SourceDist
69
                       , Rules.Test
70
                       , Rules.Wrappers
71
72
73
                       , Settings
                       , Settings.Builders.Alex
                       , Settings.Builders.Ar
Andrey Mokhov's avatar
Andrey Mokhov committed
74
                       , Settings.Builders.Common
Andrey Mokhov's avatar
Andrey Mokhov committed
75
                       , Settings.Builders.Cc
Andrey Mokhov's avatar
Andrey Mokhov committed
76
                       , Settings.Builders.Configure
77
                       , Settings.Builders.DeriveConstants
78
79
80
81
82
83
84
85
86
                       , Settings.Builders.GenPrimopCode
                       , Settings.Builders.Ghc
                       , Settings.Builders.GhcCabal
                       , Settings.Builders.GhcPkg
                       , Settings.Builders.Haddock
                       , Settings.Builders.Happy
                       , Settings.Builders.Hsc2Hs
                       , Settings.Builders.HsCpp
                       , Settings.Builders.Ld
Andrey Mokhov's avatar
Andrey Mokhov committed
87
                       , Settings.Builders.Make
Andrey Mokhov's avatar
Andrey Mokhov committed
88
                       , Settings.Builders.Tar
89
                       , Settings.Default
Andrey Mokhov's avatar
Andrey Mokhov committed
90
                       , Settings.Flavours.Development
Andrey Mokhov's avatar
Andrey Mokhov committed
91
92
                       , Settings.Flavours.Performance
                       , Settings.Flavours.Profiled
93
                       , Settings.Flavours.Quick
Andrey Mokhov's avatar
Andrey Mokhov committed
94
                       , Settings.Flavours.Quickest
95
                       , Settings.Packages.Base
96
                       , Settings.Packages.Cabal
Andrey Mokhov's avatar
Andrey Mokhov committed
97
                       , Settings.Packages.Compiler
98
99
                       , Settings.Packages.Ghc
                       , Settings.Packages.GhcCabal
100
                       , Settings.Packages.Ghci
101
102
103
                       , Settings.Packages.GhcPrim
                       , Settings.Packages.Haddock
                       , Settings.Packages.IntegerGmp
Andrey Mokhov's avatar
Andrey Mokhov committed
104
                       , Settings.Packages.Rts
105
                       , Settings.Packages.RunGhc
106
                       , Settings.Path
107
                       , Settings.Install
108
109
                       , Stage
                       , Target
110
                       , UserSettings
111
                       , Util
112
113
                       , Way

114
    default-language:    Haskell2010
115
    default-extensions:  RecordWildCards
116
117
    other-extensions:    DeriveFunctor
                       , DeriveGeneric
118
                       , FlexibleInstances
119
120
                       , GeneralizedNewtypeDeriving
                       , LambdaCase
121
                       , OverloadedStrings
122
                       , ScopedTypeVariables
123
124
    build-depends:       base >= 4.8 && < 5
                       , ansi-terminal        == 0.6.*
125
                       , Cabal                == 2.0.0.2
126
                       , containers           == 0.5.*
Andrey Mokhov's avatar
Andrey Mokhov committed
127
                       , directory            >= 1.2 && < 1.4
Andrey Mokhov's avatar
Andrey Mokhov committed
128
                       , extra                >= 1.4.7
129
                       , mtl                  == 2.2.*
Andrey Mokhov's avatar
Andrey Mokhov committed
130
                       , QuickCheck           >= 2.6 && < 2.10
Andrey Mokhov's avatar
Andrey Mokhov committed
131
                       , shake                >= 0.15.6
132
133
                       , transformers         >= 0.4 && < 0.6
                       , unordered-containers == 0.2.*
134
135
    build-tools:         alex  >= 3.1
                       , happy >= 1.19.4
Andrey Mokhov's avatar
Andrey Mokhov committed
136
137
138
139
140
141
142
143
144
145
146
147
    ghc-options:       -Wall
                       -Wincomplete-record-updates
                       -Wredundant-constraints
                       -fno-warn-name-shadowing
                       -rtsopts
                       -- Disable idle GC to avoid redundant GCs while waiting
                       -- for external processes
                       -with-rtsopts=-I0
                       -- Don't use parallel GC as the synchronization time tends to eat any
                       -- benefit.
                       -with-rtsopts=-qg0
                       -threaded