-
Notifications
You must be signed in to change notification settings - Fork 3
/
interprocess.cabal
executable file
·130 lines (120 loc) · 4.27 KB
/
interprocess.cabal
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
cabal-version: 3.0
name: interprocess
version: 0.2.1.0
synopsis: Shared memory and control structures for IPC
description: Provides portable shared memory allocator and some synchronization primitives.
Can be used for interprocess communication.
Refer to README.md for further information.
homepage: https://github.com/achirkin/interprocess
license: BSD-3-Clause
license-file: LICENSE
author: Artem Chirkin
maintainer: [email protected]
copyright: (c) 2018-2022 Artem Chirkin
category: system
build-type: Simple
extra-source-files:
README.md
include/common.h
include/SharedPtr.h
src/Control/Concurrent/Process/QSem.c
src/Foreign/SharedPtrPosix.c
src/Foreign/SharedPtrWin32.c
src/Control/Concurrent/Process/StoredMVarPosix.c
src/Control/Concurrent/Process/StoredMVarWin32.c
flag examples
description:
Build example-test programs
default: False
manual: True
flag dev
description:
Development build with debugging and with no optimization
default: False
manual: True
library
hs-source-dirs: src
exposed-modules: Foreign.SharedPtr
Foreign.SharedObjectName
Foreign.SharedObjectName.Internal
Foreign.SharedPtr.C
Control.Concurrent.Process.QSem
Control.Concurrent.Process.StoredMVar
build-depends: base >= 4.8 && < 5
default-language: Haskell2010
ghc-options: -Wall
include-dirs: include
c-sources: cbits/common.c
src/Control/Concurrent/Process/QSem.c
src/Foreign/SharedPtr.c
cmm-sources: src/Control/Concurrent/Process/StoredMVarPrim.cmm
if os(windows)
c-sources: src/Foreign/SharedPtrWin32.c
src/Control/Concurrent/Process/StoredMVarWin32.c
else
c-sources: src/Foreign/SharedPtrPosix.c
src/Control/Concurrent/Process/StoredMVarPosix.c
if flag(dev)
ghc-options: -O0 -debug -dcmm-lint
cpp-options: -DINTERPROCESS_DEBUG
cc-options: -DINTERPROCESS_DEBUG
else
cpp-options: -DNDEBUG
cc-options: -DNDEBUG
ghc-options: -O2
executable concurrent-malloc
if !flag(examples)
buildable: False
hs-source-dirs: examples
main-is: concurrent-malloc.hs
default-language: Haskell2010
build-depends: base
, typed-process >= 0.2.5
, interprocess
ghc-options: -threaded -Wall
executable wait-qsem
if !flag(examples)
buildable: False
hs-source-dirs: examples
main-is: wait-qsem.hs
default-language: Haskell2010
build-depends: base
, typed-process >= 0.2.5
, interprocess
ghc-options: -threaded -Wall
executable wait-mvar
if !flag(examples)
buildable: False
hs-source-dirs: examples
main-is: wait-mvar.hs
default-language: Haskell2010
build-depends: base
, typed-process >= 0.2.5
, interprocess
ghc-options: -threaded -Wall
common interprocess-test-tools
hs-source-dirs: test-src
other-modules: Tools.Handle
Tools.TestResult
Tools.Runner
build-depends: base >= 4.11
, typed-process >= 0.2.5
, async
, containers
, bytestring
, stm
, temporary
, time
, interprocess
default-language: Haskell2010
ghc-options: -threaded -Wall
test-suite test-mvar
import: interprocess-test-tools
type: exitcode-stdio-1.0
main-is: test-mvar.hs
hs-source-dirs: test
benchmark time-mvar
import: interprocess-test-tools
type: exitcode-stdio-1.0
main-is: time-mvar.hs
hs-source-dirs: bench