File: cpu.cabal

package info (click to toggle)
haskell-cpu 0.1.2-9
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 84 kB
  • sloc: haskell: 171; ansic: 79; makefile: 2
file content (81 lines) | stat: -rw-r--r-- 2,181 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Name:                cpu
Version:             0.1.2
Description:         
    Lowlevel cpu routines to get basic properties of the cpu platform, like endianness and architecture.
License:             BSD3
License-file:        LICENSE
Copyright:           Vincent Hanquez <vincent@snarc.org>
Author:              Vincent Hanquez <vincent@snarc.org>
Maintainer:          Vincent Hanquez <vincent@snarc.org>
Synopsis:            Cpu information and properties helpers.
Build-Type:          Simple
Category:            Data
stability:           experimental
Cabal-Version:       >=1.8
Homepage:            http://github.com/vincenthz/hs-cpu
data-files:          README.md
Extra-source-files:  cbits/endian.c

Flag executable
  Description:       Build the executable
  Default:           False

Library
  Build-Depends:     base >= 3 && < 5
  Exposed-modules:   System.Cpuid
                     System.Endian
                     System.Arch
  ghc-options:       -Wall

  if impl(ghc < 7.8)
    C-sources:   cbits/endian.c

  if arch(i386)
    Cpp-options: -DARCH_X86
  if arch(x86_64)
    Cpp-options: -DARCH_X86_64
  if arch(ppc)
    Cpp-options: -DARCH_PPC
  if arch(ppc64)
    Cpp-options: -DARCH_PPC64
  if arch(sparc)
    Cpp-options: -DARCH_SPARC
  if arch(arm)
    Cpp-options: -DARCH_ARM
  if arch(mips)
    Cpp-options: -DARCH_MIPS
  if arch(sh)
    Cpp-options: -DARCH_SH
  if arch(ia64)
    Cpp-options: -DARCH_IA64
  if arch(s390)
    Cpp-options: -DARCH_S390
  if arch(alpha)
    Cpp-options: -DARCH_ALPHA
  if arch(hppa)
    Cpp-options: -DARCH_HPPA
  if arch(rs6000)
    Cpp-options: -DARCH_RS6000
  if arch(m68k)
    Cpp-options: -DARCH_M68K
  if arch(vax)
    Cpp-options: -DARCH_VAX

  if arch(i386) || arch(x86_64)
    C-sources:   cbits/cpuid.c

executable           cpuid
  hs-source-dirs:    cpuid
  Main-is:           Cpuid.hs
  if flag(executable)
    Buildable:       True
    Build-Depends:   base >= 3 && < 5
                   , cpu
                   , bytestring
  else
    Buildable:       False
  ghc-options:       -Wall -fno-warn-orphans -fno-warn-missing-signatures

source-repository head
  type: git
  location: git://github.com/vincenthz/hs-cpu