/
netcode-io.cabal
130 lines (112 loc) · 3.91 KB
/
netcode-io.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: >= 1.10
name: netcode-io
version: 0.0.3
synopsis: Bindings to the low-level netcode.io library.
description: Bindings to the low-level netcode.io library, which come
in two flavors: c-level bindings and a high-level
interface to the library.
For the low level interface, refer to the
Bindings.Netcode.IO module.
For the high-level interface, which is a bit closer to
idiomatic Haskell, refer to the Netcode.IO module.
homepage: http://www.github.com/Mokosha/netcode-io
bug-reports: http://www.github.com/Mokosha/netcode-io
license: BSD3
license-file: LICENSE
author: Pavel Krajcevski
maintainer: krajcevski@gmail.com
copyright: Pavel Krajcevski, 2020
category: Network
build-type: Simple
extra-source-files: README.md
, netcode.io/LICENCE
, netcode.io/README.md
, netcode.io/STANDARD.md
, netcode.io/netcode.h
, netcode.io/netcode.c
source-repository head
type: git
location: https://www.github.com/Mokosha/netcode-io.git
library
ghc-options: -Wall -fPIC
include-dirs: netcode.io
c-sources: netcode.io/netcode.c
cc-options: -std=c99 -DNDEBUG -DNETCODE_ENABLE_TESTS=1
extra-libraries: sodium
if os(mingw32)
-- To make life easy on windows, we encourage using static libraries where
-- possible. That way we don't need to go around copying .dll files.
ld-options: -static
extra-libraries: ws2_32
if os(linux)
cc-options: -D_POSIX_C_SOURCE=199309L
exposed-modules: Bindings.Netcode.IO
, Netcode.IO
other-modules: Netcode.IO.Server
, Netcode.IO.Client
, Netcode.IO.Address
, Netcode.IO.Packet
, Netcode.IO.Callbacks
-- other-extensions:
build-tools: hsc2hs
build-depends: base >= 4.12 && < 5
, bindings-DSL
default-language: Haskell2010
flag examples
description: If true, build the examples
default: False
executable netcode-io-c-unit-tests
default-language: Haskell2010
main-is: RunCUnitTests.hs
hs-source-dirs: examples
ghc-options: -Wall -static -fPIC
build-depends: base > 4
, netcode-io
if flag(examples)
buildable: True
else
buildable: False
executable netcode-io-client
default-language: Haskell2010
main-is: Client.hs
hs-source-dirs: examples
ghc-options: -Wall -static -fPIC
build-depends: base > 4
, netcode-io
if flag(examples)
buildable: True
else
buildable: False
executable netcode-io-server
default-language: Haskell2010
main-is: Server.hs
hs-source-dirs: examples
ghc-options: -Wall -static -fPIC
build-depends: base > 4
, netcode-io
if flag(examples)
buildable: True
else
buildable: False
executable netcode-io-clientserver
default-language: Haskell2010
main-is: ClientServer.hs
hs-source-dirs: examples
ghc-options: -Wall -static -fPIC
build-depends: base > 4
, netcode-io
if flag(examples)
buildable: True
else
buildable: False
executable netcode-io-soak
default-language: Haskell2010
main-is: Soak.hs
hs-source-dirs: examples
ghc-options: -Wall -static -fPIC
build-depends: base > 4
, netcode-io
if flag(examples)
buildable: True
else
buildable: False