-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsodium-2d-game-engine.cabal
68 lines (63 loc) · 2.31 KB
/
sodium-2d-game-engine.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
name: sodium-2d-game-engine
version: 0.0.0.1
synopsis: A cross-platform Haskell/Sodium/OpenGL game engine
-- description:
license: AllRightsReserved
license-file: LICENSE
author: Stephen Blackheath
maintainer: [email protected]
-- copyright:
-- category:
build-type: Simple
cabal-version: >=1.8
flag ghcjs
Description: True if we are building for ghcjs
default: False
library
exposed-modules:
FRP.Sodium.GameEngine2D.CleanMouse
FRP.Sodium.GameEngine2D.Geometry
FRP.Sodium.GameEngine2D.Orientation
FRP.Sodium.GameEngine2D.Cache
FRP.Sodium.GameEngine2D.Platform
FRP.Sodium.GameEngine2D.Gesture
if os(ios)
exposed-modules: FRP.Sodium.GameEngine2D.IOS
FRP.Sodium.GameEngine2D.CommonGL
FRP.Sodium.GameEngine2D.CommonAL
else
if flag(ghcjs)
exposed-modules: FRP.Sodium.GameEngine2D.WebGL
else
exposed-modules: FRP.Sodium.GameEngine2D.GLUT
FRP.Sodium.GameEngine2D.CommonGL
FRP.Sodium.GameEngine2D.CommonAL
FRP.Sodium.GameEngine2D.Image
build-depends: base >= 4.5 && < 4.8,
filepath >= 1.3.0.0,
bytestring >= 0.9.2.1,
containers >= 0.5.0.0,
time >= 1.4,
random >= 1.0.1.1,
mtl >= 2.1.2,
sodium >= 0.10.0.0,
text >= 0.11.3.1,
data-default >= 0.5.3
if os(ios)
build-depends: stm >= 2.4.2, OpenAL >= 1.5.0.0, OpenGL >= 2.9.0.0, OpenGLRaw >= 1.4.0.0,
FTGLES >= 1.333, libvorbis
else
if flag(ghcjs)
build-depends: ghcjs-base
else
build-depends: stm >= 2.4.2, OpenAL >= 1.5.0.0, OpenGL >= 2.9.0.0, OpenGLRaw >= 1.4.0.0,
GLUT >= 2.5.0.0, bitmap >= 0.0.2, stb-image >= 0.2.1,
libvorbis
ghc-options:
-fwarn-incomplete-patterns
-fwarn-overlapping-patterns
-fwarn-missing-fields
if os(ios)
ghc-options:
-staticlib
"-with-rtsopts=-G3"