hadrian.cabal 5.82 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
8
copyright:           Andrey Mokhov 2014-2017
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
23
                       , CommandLine
24
                       , Context
25
                       , Environment
26
                       , Expression
Andrey Mokhov's avatar
Andrey Mokhov committed
27
                       , Flavour
28
                       , GHC
29
                       , Hadrian.Expression
30
                       , Hadrian.Haskell.Cabal
31
                       , Hadrian.Oracles.ArgsHash
32
                       , Hadrian.Oracles.DirectoryContents
33
                       , Hadrian.Oracles.KeyValue
34
                       , Hadrian.Oracles.Path
35
                       , Hadrian.Target
36
                       , Hadrian.Utilities
37 38
                       , Oracles.Flag
                       , Oracles.Setting
39 40 41 42 43
                       , Oracles.ModuleFiles
                       , Oracles.PackageData
                       , Package
                       , 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.Gmp
Zhen Zhang's avatar
Zhen Zhang committed
52
                       , Rules.Install
Andrey Mokhov's avatar
Andrey Mokhov committed
53
                       , Rules.Libffi
54
                       , Rules.Library
Moritz Angermann's avatar
Moritz Angermann committed
55
                       , Rules.Perl
56
                       , Rules.Program
57
                       , Rules.Register
58
                       , Rules.Selftest
kaiha's avatar
kaiha committed
59
                       , Rules.SourceDist
60
                       , Rules.Test
61
                       , Rules.Wrappers
62 63 64
                       , Settings
                       , Settings.Builders.Alex
                       , Settings.Builders.Ar
Andrey Mokhov's avatar
Andrey Mokhov committed
65
                       , Settings.Builders.Common
Andrey Mokhov's avatar
Andrey Mokhov committed
66
                       , Settings.Builders.Cc
Andrey Mokhov's avatar
Andrey Mokhov committed
67
                       , Settings.Builders.Configure
68
                       , Settings.Builders.DeriveConstants
69 70 71 72 73 74 75 76 77
                       , 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
78
                       , Settings.Builders.Make
Andrey Mokhov's avatar
Andrey Mokhov committed
79
                       , Settings.Builders.Tar
80
                       , Settings.Default
Andrey Mokhov's avatar
Andrey Mokhov committed
81
                       , Settings.Flavours.Development
Andrey Mokhov's avatar
Andrey Mokhov committed
82 83
                       , Settings.Flavours.Performance
                       , Settings.Flavours.Profiled
84
                       , Settings.Flavours.Quick
Andrey Mokhov's avatar
Andrey Mokhov committed
85
                       , Settings.Flavours.Quickest
86
                       , Settings.Packages.Base
87
                       , Settings.Packages.Cabal
Andrey Mokhov's avatar
Andrey Mokhov committed
88
                       , Settings.Packages.Compiler
89 90
                       , Settings.Packages.Ghc
                       , Settings.Packages.GhcCabal
91
                       , Settings.Packages.Ghci
92 93 94
                       , Settings.Packages.GhcPrim
                       , Settings.Packages.Haddock
                       , Settings.Packages.IntegerGmp
Andrey Mokhov's avatar
Andrey Mokhov committed
95
                       , Settings.Packages.Rts
96
                       , Settings.Packages.RunGhc
97 98
                       , Stage
                       , Target
99
                       , UserSettings
100
                       , Utilities
101
                       , Way
102
    default-language:    Haskell2010
103
    default-extensions:  DeriveFunctor
104
                       , DeriveGeneric
105
                       , FlexibleInstances
106 107
                       , GeneralizedNewtypeDeriving
                       , LambdaCase
108
                       , RecordWildCards
109
                       , ScopedTypeVariables
110 111 112
                       , TupleSections
    other-extensions:    MultiParamTypeClasses
                       , OverloadedStrings
113
                       , TypeFamilies
114 115
    build-depends:       base >= 4.8 && < 5
                       , ansi-terminal        == 0.6.*
116
                       , Cabal                == 2.0.0.2
117
                       , containers           == 0.5.*
Andrey Mokhov's avatar
Andrey Mokhov committed
118
                       , directory            >= 1.2 && < 1.4
Andrey Mokhov's avatar
Andrey Mokhov committed
119
                       , extra                >= 1.4.7
120
                       , mtl                  == 2.2.*
Andrey Mokhov's avatar
Andrey Mokhov committed
121
                       , QuickCheck           >= 2.6 && < 2.10
Andrey Mokhov's avatar
Andrey Mokhov committed
122
                       , shake                >= 0.15.6
123 124
                       , transformers         >= 0.4 && < 0.6
                       , unordered-containers == 0.2.*
125 126
    build-tools:         alex  >= 3.1
                       , happy >= 1.19.4
Andrey Mokhov's avatar
Andrey Mokhov committed
127 128 129 130 131 132 133 134 135 136 137 138
    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