forked from haskell-game/sdl2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdl2.cabal
428 lines (352 loc) · 9.3 KB
/
sdl2.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
name: sdl2
version: 2.2.0
synopsis: Both high- and low-level bindings to the SDL library (version 2.0.4+).
description:
This package contains bindings to the SDL 2 library, in both high- and
low-level forms:
.
The 'SDL' namespace contains high-level bindings, where enumerations are split
into sum types, and we perform automatic error-checking.
.
The 'SDL.Raw' namespace contains an almost 1-1 translation of the C API into
Haskell FFI calls. As such, this does not contain sum types nor error
checking. Thus this namespace is suitable for building your own abstraction
over SDL, but is not recommended for day-to-day programming.
license: BSD3
license-file: LICENSE
author: Gabríel Arthúr Pétursson, Oliver Charles
maintainer: [email protected], [email protected]
copyright: Copyright © 2013-2017 Gabríel Arthúr Pétursson
category: Graphics
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
ChangeLog.md,
cbits/sdlhelper.c,
include/sdlhelper.h
data-files:
examples/lazyfoo/*.bmp
examples/twinklebear/*.bmp
source-repository head
type: git
location: https://github.com/haskell-game/sdl2.git
-- source-repository this
-- type: git
-- location: https://github.com/haskell-game/sdl2.git
-- tag: 2.0.0
flag examples
description: Build examples (except opengl-example)
default: False
flag opengl-example
description: Build opengl-example
default: False
flag no-linear
description: Do not depend on 'linear' library
default: False
manual: True
library
-- ghc-options: -Wall
cpp-options: -D_SDL_main_h
exposed-modules:
SDL
SDL.Audio
SDL.Event
SDL.Exception
SDL.Filesystem
SDL.Hint
SDL.Init
SDL.Input
SDL.Input.Joystick
SDL.Input.Keyboard
SDL.Input.Keyboard.Codes
SDL.Input.Mouse
SDL.Power
SDL.Time
SDL.Vect
SDL.Video
SDL.Video.OpenGL
SDL.Video.Renderer
SDL.Internal.Exception
SDL.Internal.Numbered
SDL.Internal.Types
SDL.Internal.Vect
SDL.Raw
SDL.Raw.Audio
SDL.Raw.Basic
SDL.Raw.Enum
SDL.Raw.Error
SDL.Raw.Event
SDL.Raw.Filesystem
SDL.Raw.Haptic
SDL.Raw.Platform
SDL.Raw.Power
SDL.Raw.Thread
SDL.Raw.Timer
SDL.Raw.Types
SDL.Raw.Video
other-modules:
Data.Bitmask
hs-source-dirs:
src/
c-sources:
cbits/sdlhelper.c
include-dirs:
include
includes:
SDL.h
sdlhelper.h
extra-libraries:
SDL2
pkgconfig-depends:
sdl2 >= 2.0.4
build-depends:
base >= 4.7 && < 5,
bytestring >= 0.10.4.0 && < 0.11,
exceptions >= 0.4 && < 0.9,
StateVar >= 1.1.0.0 && < 1.2,
text >= 1.1.0.0 && < 1.3,
transformers >= 0.2 && < 0.6,
vector >= 0.10.9.0 && < 0.13
if flag(no-linear)
cpp-options: -Dnolinear
else
build-depends:
linear >= 1.10.1.2 && < 1.21
default-language:
Haskell2010
executable lazyfoo-lesson-01
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson01.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson01
executable lazyfoo-lesson-02
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson02.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson02
executable lazyfoo-lesson-03
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson03.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson03
executable lazyfoo-lesson-04
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson04.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson04
executable lazyfoo-lesson-05
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson05.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson05
executable lazyfoo-lesson-07
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson07.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson07
executable lazyfoo-lesson-08
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson08.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson08
executable lazyfoo-lesson-09
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson09.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson09
executable lazyfoo-lesson-10
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson10.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson10
executable lazyfoo-lesson-11
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson11.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson11
executable lazyfoo-lesson-12
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson12.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson12
executable lazyfoo-lesson-13
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson13.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson13
executable lazyfoo-lesson-14
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson14.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson14
executable lazyfoo-lesson-15
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson15.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson15
executable lazyfoo-lesson-17
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson17.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson17
executable lazyfoo-lesson-18
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson18.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson18
executable lazyfoo-lesson-19
if flag(examples)
build-depends: base, vector, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson19.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson19
executable lazyfoo-lesson-20
if flag(examples)
build-depends: base, vector, sdl2
else
buildable: False
-- Not buildable until someone with a haptic device can help out!
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson20.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson20
executable lazyfoo-lesson-43
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/lazyfoo
main-is: Lesson43.hs
default-language: Haskell2010
ghc-options: -main-is Lazyfoo.Lesson43
executable twinklebear-lesson-01
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/twinklebear
main-is: Lesson01.hs
default-language: Haskell2010
ghc-options: -main-is TwinkleBear.Lesson01
executable twinklebear-lesson-02
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/twinklebear
main-is: Lesson02.hs
default-language: Haskell2010
ghc-options: -main-is TwinkleBear.Lesson02
executable twinklebear-lesson-04
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/twinklebear
main-is: Lesson04.hs
default-language: Haskell2010
ghc-options: -main-is TwinkleBear.Lesson04
executable twinklebear-lesson-04a
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/twinklebear
main-is: Lesson04a.hs
default-language: Haskell2010
ghc-options: -main-is TwinkleBear.Lesson04a
executable twinklebear-lesson-05
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples/twinklebear
main-is: Lesson05.hs
default-language: Haskell2010
ghc-options: -main-is TwinkleBear.Lesson05
executable audio-example
if flag(examples)
build-depends: base, vector, sdl2
else
buildable: False
hs-source-dirs: examples
main-is: AudioExample.hs
default-language: Haskell2010
ghc-options: -main-is AudioExample -threaded
executable opengl-example
if flag(opengl-example)
build-depends: base, OpenGL, bytestring, vector, sdl2
else
buildable: False
hs-source-dirs: examples
main-is: OpenGLExample.hs
default-language: Haskell2010
ghc-options: -main-is OpenGLExample