aboutsummaryrefslogtreecommitdiff
path: root/Spear.cabal
blob: 7025fcda08e7e613682641ce3b163f78b262bdfc (plain)
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
name: Spear
version: 0.1
cabal-version: >=1.8
build-type: Simple
license: BSD3
license-file: LICENSE
maintainer: 3gg@shellblade.net
homepage: http://spear.shellblade.net
synopsis: A 2.5D game framework.
category: Game
author: Marc Sunet
data-dir: ""

library
    build-depends: GLFW-b -any,
                   OpenGL >= 3,
                   OpenGLRaw -any,
                   StateVar -any,
                   base -any,
                   bytestring -any,
                   directory -any,
                   exceptions -any,
                   mtl -any,
                   transformers -any,
                   resourcet -any,
                   parsec >= 3,
                   containers -any,
                   vector -any,
                   array -any

    exposed-modules: Spear.App
                     Spear.Assets.Image
                     Spear.Assets.Model
                     Spear.Game
                     Spear.GL
                     Spear.Math.AABB
                     Spear.Math.Camera
                     Spear.Math.Circle
                     Spear.Math.Collision
                     Spear.Math.Frustum
                     Spear.Math.Matrix3
                     Spear.Math.Matrix4
                     Spear.Math.MatrixUtils
                     Spear.Math.Octree
                     Spear.Math.Plane
                     Spear.Math.Quaternion
                     Spear.Math.Ray
                     Spear.Math.Segment
                     Spear.Math.Spatial2
                     Spear.Math.Spatial3
                     Spear.Math.Sphere
                     Spear.Math.Triangle
                     Spear.Math.Utils
                     Spear.Math.Vector
                     Spear.Math.Vector.Vector
                     Spear.Math.Vector.Vector2
                     Spear.Math.Vector.Vector3
                     Spear.Math.Vector.Vector4
                     Spear.Render.AnimatedModel
                     Spear.Render.Material
                     Spear.Render.Model
                     Spear.Render.Program
                     Spear.Render.StaticModel
                     Spear.Scene.Graph
                     Spear.Scene.Loader
                     Spear.Scene.SceneResources
                     Spear.Step
                     Spear.Sys.Store
                     Spear.Sys.Store.ID
                     Spear.Sys.Timer
                     Spear.Window

    exposed: True

    buildable: True

    build-tools: hsc2hs -any

    cc-options: -O2 -g -Wno-unused-result

    c-sources: Spear/Assets/Image/Image.c
               Spear/Assets/Image/BMP/BMP_load.c
               Spear/Assets/Model/Model.c
               Spear/Assets/Model/MD2/MD2_load.c
               Spear/Assets/Model/OBJ/cvector.c
               Spear/Assets/Model/OBJ/OBJ_load.c
               Spear/Render/RenderModel.c
               Spear/Sys/Timer/ctimer.c

    extensions: TypeFamilies

    includes: Spear/Assets/Image/BMP/BMP_load.h
              Spear/Assets/Image/Image.h
              Spear/Assets/Image/Image_error_code.h
              Spear/Assets/Image/sys_types.h
              Spear/Assets/Model/MD2/MD2_load.h
              Spear/Assets/Model/OBJ/OBJ_load.h
              Spear/Assets/Model/OBJ/cvector.h
              Spear/Assets/Model/Model.h
              Spear/Assets/Model/Model_error_code.h
              Spear/Assets/Model/sys_types.h
              Spear/Render/RenderModel.h
              Timer/Timer.h

    include-dirs: .
                  Spear
                  Spear/Assets/Image
                  Spear/Assets/Image/BMP
                  Spear/Assets/Model
                  Spear/Render
                  Spear/Sys

    hs-source-dirs: .

    ghc-options: -O2

    ghc-prof-options: -O2 -fprof-auto -fprof-cafs

executable pong
  hs-source-dirs:      Demos/Pong
  main-is:             Main.hs
  other-modules:       Pong
  build-depends:       base, Spear, OpenGL