-
Notifications
You must be signed in to change notification settings - Fork 86
/
sdl2.cabal
532 lines (446 loc) · 11.9 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
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
name: sdl2
version: 2.5.5.0
synopsis: Both high- and low-level bindings to the SDL library (version 2.0.6+).
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.
.
Read "SDL" for a getting started guide.
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
manual: True
flag opengl-example
description: Build opengl-example
default: False
manual: True
flag no-linear
description: Do not depend on 'linear' library
default: False
manual: True
flag recent-ish
description: Use features from a more recent libsdl2 release.
default: True
manual: False
flag pkgconfig
description: Use pkgconfig to sort out SDL2 dependency
default: True
manual: True
library
-- ghc-options: -Wall -Werror
exposed-modules:
SDL
SDL.Audio
SDL.Event
SDL.Exception
SDL.Filesystem
SDL.Hint
SDL.Init
SDL.Input
SDL.Input.GameController
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.Video.Vulkan
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
SDL_vulkan.h
sdlhelper.h
extra-libraries:
SDL2
if flag(recent-ish)
cpp-options:
-DRECENT_ISH
if flag(pkgconfig)
pkgconfig-depends:
sdl2 >= 2.0.10
else
if flag(pkgconfig)
pkgconfig-depends:
sdl2 >= 2.0.6
build-depends:
base >= 4.7 && < 5,
bytestring >= 0.10.4.0 && < 0.13,
exceptions >= 0.4 && < 0.11,
StateVar >= 1.1.0.0 && < 1.3,
text >= 1.1.0.0 && < 2.2,
transformers >= 0.2 && < 0.7,
vector >= 0.10.9.0 && < 0.14
if flag(no-linear)
cpp-options: -Dnolinear
else
build-depends:
linear >= 1.10.1.2 && < 1.23
if impl(ghc >= 8.6)
default-extensions: NoStarIsType
default-language:
Haskell2010
if os(windows)
cpp-options: -D_SDL_main_h -DSDL_main_h_
test-suite sdl-space
type: exitcode-stdio-1.0
main-is: Space.hs
hs-source-dirs: bench
build-depends: base
, weigh >= 0.0.8
, linear
, sdl2
, deepseq
, vector
ghc-options: -Wall -rtsopts -O2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2
executable eventwatch-example
if flag(examples)
build-depends: base, sdl2
else
buildable: False
hs-source-dirs: examples
main-is: EventWatch.hs
default-language: Haskell2010
ghc-options: -main-is EventWatch
other-modules: Paths_sdl2
executable userevent-example
if flag(examples)
build-depends: base, text, sdl2
else
buildable: False
hs-source-dirs: examples
main-is: UserEvents.hs
default-language: Haskell2010
ghc-options: -main-is UserEvents
other-modules: Paths_sdl2
executable rendergeometry-example
if flag(examples)
build-depends: base, bytestring, vector, sdl2
else
buildable: False
hs-source-dirs: examples
main-is: RenderGeometry.hs
default-language: Haskell2010
ghc-options: -main-is RenderGeometry
other-modules: Paths_sdl2
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
other-modules: Paths_sdl2