Rename package key to unit ID, and installed package ID to component ID.
[ghc.git] / libraries / ghc-prim / ghc-prim.cabal
1 name:           ghc-prim
2 version:        0.4.0.0
3 -- GHC 7.8.4 released with 0.3.1.0
4 license:        BSD3
5 license-file:   LICENSE
6 category:       GHC
7 maintainer:     libraries@haskell.org
8 bug-reports:    http://ghc.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29&keywords=ghc-prim
9 synopsis:       GHC primitives
10 cabal-version:  >=1.10
11 build-type:     Custom
12 description:
13     GHC primitives.
14
15 source-repository head
16     type:     git
17     location: http://git.haskell.org/ghc.git
18     subdir:   libraries/ghc-prim
19
20 flag include-ghc-prim
21     Description: Include GHC.Prim in exposed-modules
22     default: False
23
24 custom-setup
25     setup-depends: base >= 4 && < 5, Cabal >= 1.23
26
27 Library
28     default-language: Haskell2010
29     other-extensions:
30         BangPatterns
31         CPP
32         DeriveGeneric
33         MagicHash
34         MultiParamTypeClasses
35         NoImplicitPrelude
36         StandaloneDeriving
37         Trustworthy
38         TypeFamilies
39         UnboxedTuples
40         UnliftedFFITypes
41
42     build-depends: rts == 1.0.*
43
44     exposed-modules:
45         GHC.CString
46         GHC.Classes
47         GHC.Debug
48         GHC.IntWord64
49         GHC.Magic
50         GHC.PrimopWrappers
51         GHC.Tuple
52         GHC.Types
53
54     if flag(include-ghc-prim)
55         exposed-modules: GHC.Prim
56
57     c-sources:
58         cbits/atomic.c
59         cbits/bswap.c
60         cbits/clz.c
61         cbits/ctz.c
62         cbits/debug.c
63         cbits/longlong.c
64         cbits/popcnt.c
65         cbits/word2float.c
66
67     -- We need to set the unit ID to ghc-prim (without a version number)
68     -- as it's magic.
69     ghc-options: -this-package-key ghc-prim