24999905f63754cfe54fac9fc15dd45fe3eecafc
[packages/process.git] / process.cabal
1 name:          process
2 version:       1.6.5.0
3 -- NOTE: Don't forget to update ./changelog.md
4 license:       BSD3
5 license-file:  LICENSE
6 maintainer:    libraries@haskell.org
7 bug-reports:   https://github.com/haskell/process/issues
8 synopsis:      Process libraries
9 category:      System
10 build-type:    Configure
11 cabal-version: >=1.10
12 description:
13     This package contains libraries for dealing with system processes.
14     .
15     The typed-process package is a more recent take on a process API,
16     which uses this package internally. It features better binary
17     support, easier concurrency, and a more composable API. You can
18     read more about it at
19     <https://github.com/fpco/typed-process/#readme>.
20
21 extra-source-files:
22     aclocal.m4
23     changelog.md
24     configure
25     configure.ac
26     include/HsProcessConfig.h.in
27     process.buildinfo
28     exes/echo.bat
29     exes/subdir/echo.bat
30
31 extra-tmp-files:
32     autom4te.cache
33     config.log
34     config.status
35     include/HsProcessConfig.h
36
37 source-repository head
38     type:     git
39     location: https://github.com/haskell/process.git
40
41 library
42     default-language: Haskell2010
43     other-extensions:
44         BangPatterns
45         CPP
46         InterruptibleFFI
47         RecordWildCards
48         Trustworthy
49         Safe
50
51     exposed-modules:
52         System.Cmd
53         System.Process
54         System.Process.Internals
55     other-modules: System.Process.Common
56     if os(windows)
57         other-modules: System.Process.Windows
58         build-depends: Win32 >=2.2 && < 2.7
59         extra-libraries: kernel32
60         cpp-options: -DWINDOWS
61     else
62         other-modules: System.Process.Posix
63         build-depends: unix >= 2.5 && < 2.8
64
65     c-sources:
66         cbits/runProcess.c
67     include-dirs: include
68     includes:
69         runProcess.h
70     install-includes:
71         runProcess.h
72         processFlags.h
73
74     ghc-options: -Wall
75
76     build-depends: base      >= 4.8.2 && < 4.14,
77                    directory >= 1.1 && < 1.4,
78                    filepath  >= 1.2 && < 1.5,
79                    deepseq   >= 1.1 && < 1.5
80
81 test-suite test
82   default-language: Haskell2010
83   hs-source-dirs: test
84   main-is: main.hs
85   type: exitcode-stdio-1.0
86   -- Add otherwise redundant bounds on base since GHC's build system runs
87   -- `cabal check`, which mandates bounds on base.
88   build-depends: base >= 4 && < 5
89                , bytestring
90                , directory
91                , process
92   ghc-options: -threaded
93                -with-rtsopts "-N"