aboutsummaryrefslogtreecommitdiff
path: root/Spear.cabal
blob: 8ccc62807feecb904a0b1701e2faccddf5f617f7 (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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,
      hashable -any,
      hashmap -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.Algebra
      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.Spatial
      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.Prelude
      Spear.Render.AnimatedModel
      Spear.Render.Core
      Spear.Render.Core.Buffer
      Spear.Render.Core.Constants
      Spear.Render.Core.Geometry
      Spear.Render.Core.Pipeline
      Spear.Render.Core.Shader
      Spear.Render.Core.State
      Spear.Render.Immediate
      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

    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/timer.c

    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
      Spear/Sys/Timer/timer.h

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

    hs-source-dirs: .

    cc-options:       -O2 -g -Wno-unused-result
    ghc-options:      -O2 -g
    ghc-prof-options: -O2 -g -fprof-auto -fprof-cafs

executable pong
  hs-source-dirs:      Demos/Pong
  main-is:             Main.hs
  other-modules:       Pong
  build-depends:       base, Spear, OpenGL
  ghc-options:         -O2 -g
  ghc-prof-options:    -O2 -g -fprof-auto -fprof-cafs