Refactor builder path manipulation
[hadrian.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-2016
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                        , CmdLineFlag
24                        , Context
25                        , Environment
26                        , Expression
27                        , Flavour
28                        , GHC
29                        , Oracles.ArgsHash
30                        , Oracles.Config
31                        , Oracles.Config.Flag
32                        , Oracles.Config.Setting
33                        , Oracles.Dependencies
34                        , Oracles.DirectoryContent
35                        , Oracles.LookupInPath
36                        , Oracles.ModuleFiles
37                        , Oracles.PackageData
38                        , Oracles.Path
39                        , Package
40                        , Predicate
41                        , Rules
42                        , Rules.Actions
43                        , Rules.Cabal
44                        , Rules.Clean
45                        , Rules.Compile
46                        , Rules.Configure
47                        , Rules.Data
48                        , Rules.Dependencies
49                        , Rules.Documentation
50                        , Rules.Generate
51                        , Rules.Generators.Common
52                        , Rules.Generators.ConfigHs
53                        , Rules.Generators.GhcAutoconfH
54                        , Rules.Generators.GhcBootPlatformH
55                        , Rules.Generators.GhcPlatformH
56                        , Rules.Generators.GhcSplit
57                        , Rules.Generators.GhcVersionH
58                        , Rules.Generators.VersionHs
59                        , Rules.Gmp
60                        , Rules.Libffi
61                        , Rules.Library
62                        , Rules.Oracles
63                        , Rules.Perl
64                        , Rules.Program
65                        , Rules.Register
66                        , Rules.Selftest
67                        , Rules.SourceDist
68                        , Rules.Test
69                        , Rules.Wrappers.Ghc
70                        , Rules.Wrappers.GhcPkg
71                        , Settings
72                        , Settings.Builders.Alex
73                        , Settings.Builders.Ar
74                        , Settings.Builders.Common
75                        , Settings.Builders.Cc
76                        , Settings.Builders.Configure
77                        , Settings.Builders.DeriveConstants
78                        , Settings.Builders.GenPrimopCode
79                        , Settings.Builders.Ghc
80                        , Settings.Builders.GhcCabal
81                        , Settings.Builders.GhcPkg
82                        , Settings.Builders.Haddock
83                        , Settings.Builders.Happy
84                        , Settings.Builders.Hsc2Hs
85                        , Settings.Builders.HsCpp
86                        , Settings.Builders.Ld
87                        , Settings.Builders.Make
88                        , Settings.Builders.Tar
89                        , Settings.Default
90                        , Settings.Flavours.Quick
91                        , Settings.Flavours.Quickest
92                        , Settings.Packages.Base
93                        , Settings.Packages.Compiler
94                        , Settings.Packages.Directory
95                        , Settings.Packages.Ghc
96                        , Settings.Packages.GhcCabal
97                        , Settings.Packages.GhcPrim
98                        , Settings.Packages.Haddock
99                        , Settings.Packages.Hp2ps
100                        , Settings.Packages.IntegerGmp
101                        , Settings.Packages.IservBin
102                        , Settings.Packages.Rts
103                        , Settings.Packages.RunGhc
104                        , Settings.Packages.Touchy
105                        , Settings.Packages.Unlit
106                        , Settings.Paths
107                        , Stage
108                        , Target
109                        , UserSettings
110                        , Way
111
112     default-language:    Haskell2010
113     default-extensions:  RecordWildCards
114     other-extensions:    DeriveGeneric
115                        , FlexibleInstances
116                        , GeneralizedNewtypeDeriving
117                        , LambdaCase
118                        , OverloadedStrings
119                        , ScopedTypeVariables
120     build-depends:       base >= 4.8 && < 5
121                        , ansi-terminal        == 0.6.*
122                        , Cabal                == 1.25.*
123                        , containers           == 0.5.*
124                        , directory            == 1.2.*
125                        , extra                >= 1.4.7
126                        , mtl                  == 2.2.*
127                        , QuickCheck           >= 2.6 && < 2.9
128                        , shake                >= 0.15.6
129                        , transformers         >= 0.4 && < 0.6
130                        , unordered-containers == 0.2.*
131     build-tools:         alex  >= 3.1
132                        , happy >= 1.19.4
133     ghc-options:         -Wall
134                          -fno-warn-name-shadowing
135                          -rtsopts -with-rtsopts=-I0
136                          -threaded