hadrian.cabal 5.48 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
29
30
31
32
33
                       , GHC
                       , Oracles.ArgsHash
                       , Oracles.Config
                       , Oracles.Config.Flag
                       , Oracles.Config.Setting
                       , Oracles.Dependencies
Andrey Mokhov's avatar
Andrey Mokhov committed
34
                       , Oracles.DirectoryContents
35
36
                       , Oracles.ModuleFiles
                       , Oracles.PackageData
37
                       , Oracles.Path
38
                       , Package
39
                       , Predicate
40
41
                       , Rules
                       , Rules.Cabal
Andrey Mokhov's avatar
Andrey Mokhov committed
42
                       , Rules.Clean
43
                       , Rules.Compile
44
                       , Rules.Configure
45
46
47
48
                       , Rules.Data
                       , Rules.Dependencies
                       , Rules.Documentation
                       , Rules.Generate
49
                       , Rules.Generators.Common
50
                       , Rules.Generators.ConfigHs
51
52
53
                       , Rules.Generators.GhcAutoconfH
                       , Rules.Generators.GhcBootPlatformH
                       , Rules.Generators.GhcPlatformH
54
                       , Rules.Generators.GhcSplit
55
                       , Rules.Generators.GhcVersionH
56
                       , Rules.Generators.VersionHs
57
                       , Rules.Gmp
Andrey Mokhov's avatar
Andrey Mokhov committed
58
                       , Rules.Libffi
59
60
                       , Rules.Library
                       , Rules.Oracles
Moritz Angermann's avatar
Moritz Angermann committed
61
                       , Rules.Perl
62
                       , Rules.Program
63
                       , Rules.Register
64
                       , Rules.Selftest
kaiha's avatar
kaiha committed
65
                       , Rules.SourceDist
66
                       , Rules.Test
Andrey Mokhov's avatar
Andrey Mokhov committed
67
                       , Rules.Wrappers.Ghc
Moritz Angermann's avatar
Moritz Angermann committed
68
                       , Rules.Wrappers.GhcPkg
69
70
71
                       , Settings
                       , Settings.Builders.Alex
                       , Settings.Builders.Ar
Andrey Mokhov's avatar
Andrey Mokhov committed
72
                       , Settings.Builders.Common
Andrey Mokhov's avatar
Andrey Mokhov committed
73
                       , Settings.Builders.Cc
Andrey Mokhov's avatar
Andrey Mokhov committed
74
                       , Settings.Builders.Configure
75
                       , Settings.Builders.DeriveConstants
76
77
78
79
80
81
82
83
84
                       , 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
85
                       , Settings.Builders.Make
Andrey Mokhov's avatar
Andrey Mokhov committed
86
                       , Settings.Builders.Tar
87
                       , Settings.Default
Andrey Mokhov's avatar
Andrey Mokhov committed
88
                       , Settings.Flavours.Perf
89
                       , Settings.Flavours.Quick
Andrey Mokhov's avatar
Andrey Mokhov committed
90
                       , Settings.Flavours.Quickest
91
                       , Settings.Packages.Base
Andrey Mokhov's avatar
Andrey Mokhov committed
92
                       , Settings.Packages.Compiler
93
94
                       , Settings.Packages.Ghc
                       , Settings.Packages.GhcCabal
95
                       , Settings.Packages.Ghci
96
97
98
                       , Settings.Packages.GhcPrim
                       , Settings.Packages.Haddock
                       , Settings.Packages.IntegerGmp
Andrey Mokhov's avatar
Andrey Mokhov committed
99
                       , Settings.Packages.Rts
100
                       , Settings.Packages.RunGhc
101
                       , Settings.Path
102
103
                       , Stage
                       , Target
104
                       , UserSettings
105
                       , Util
106
107
                       , Way

108
    default-language:    Haskell2010
109
    default-extensions:  RecordWildCards
110
    other-extensions:    DeriveGeneric
111
                       , FlexibleInstances
112
113
                       , GeneralizedNewtypeDeriving
                       , LambdaCase
114
                       , OverloadedStrings
115
                       , ScopedTypeVariables
116
117
    build-depends:       base >= 4.8 && < 5
                       , ansi-terminal        == 0.6.*
Andrey Mokhov's avatar
Andrey Mokhov committed
118
                       , Cabal                == 1.25.*
119
120
                       , containers           == 0.5.*
                       , directory            == 1.2.*
Andrey Mokhov's avatar
Andrey Mokhov committed
121
                       , extra                >= 1.4.7
122
123
                       , mtl                  == 2.2.*
                       , QuickCheck           >= 2.6 && < 2.9
Andrey Mokhov's avatar
Andrey Mokhov committed
124
                       , shake                >= 0.15.6
125
126
                       , transformers         >= 0.4 && < 0.6
                       , unordered-containers == 0.2.*
127
128
    build-tools:         alex  >= 3.1
                       , happy >= 1.19.4
Andrey Mokhov's avatar
Andrey Mokhov committed
129
130
131
132
    ghc-options:         -Wall
                         -fno-warn-name-shadowing
                         -rtsopts -with-rtsopts=-I0
                         -threaded