diff options
Diffstat (limited to 'Spear.cabal')
-rw-r--r-- | Spear.cabal | 241 |
1 files changed, 126 insertions, 115 deletions
diff --git a/Spear.cabal b/Spear.cabal index 8ccc628..d21f594 100644 --- a/Spear.cabal +++ b/Spear.cabal | |||
@@ -12,128 +12,139 @@ author: Marc Sunet | |||
12 | data-dir: "" | 12 | data-dir: "" |
13 | 13 | ||
14 | library | 14 | library |
15 | build-depends: | 15 | build-depends: |
16 | GLFW-b -any, | 16 | --stb-image >= 0.3.0, TODO: Remove |
17 | OpenGL >= 3, | 17 | ALUT, |
18 | OpenGLRaw -any, | 18 | GLFW-b, |
19 | StateVar -any, | 19 | OpenAL, |
20 | base -any, | 20 | OpenGL >=3, |
21 | bytestring -any, | 21 | OpenGLRaw, |
22 | directory -any, | 22 | StateVar, |
23 | exceptions -any, | 23 | array, |
24 | hashable -any, | 24 | base, |
25 | hashmap -any, | 25 | bytestring, |
26 | mtl -any, | 26 | containers, |
27 | transformers -any, | 27 | directory, |
28 | resourcet -any, | 28 | exceptions, |
29 | parsec >= 3, | 29 | file-embed, |
30 | containers -any, | 30 | hashable, |
31 | vector -any, | 31 | hashmap, |
32 | array -any | 32 | mtl, |
33 | parsec >=3, | ||
34 | resourcet, | ||
35 | text, | ||
36 | transformers, | ||
37 | vector | ||
33 | 38 | ||
34 | exposed-modules: | 39 | exposed-modules: |
35 | Spear.App | 40 | Spear.App |
36 | Spear.Assets.Image | 41 | Spear.Asset.Image |
37 | Spear.Assets.Model | 42 | Spear.Game |
38 | Spear.Game | 43 | Spear.Math.AABB |
39 | Spear.GL | 44 | Spear.Math.Algebra |
40 | Spear.Math.AABB | 45 | Spear.Math.Camera |
41 | Spear.Math.Algebra | 46 | Spear.Math.Circle |
42 | Spear.Math.Camera | 47 | Spear.Math.Frustum |
43 | Spear.Math.Circle | 48 | Spear.Math.Matrix3 |
44 | Spear.Math.Collision | 49 | Spear.Math.Matrix4 |
45 | Spear.Math.Frustum | 50 | Spear.Math.MatrixUtils |
46 | Spear.Math.Matrix3 | 51 | Spear.Math.Plane |
47 | Spear.Math.Matrix4 | 52 | Spear.Math.Quaternion |
48 | Spear.Math.MatrixUtils | 53 | Spear.Math.Ray |
49 | Spear.Math.Octree | 54 | Spear.Math.Segment |
50 | Spear.Math.Plane | 55 | Spear.Math.Spatial |
51 | Spear.Math.Quaternion | 56 | Spear.Math.Spatial2 |
52 | Spear.Math.Ray | 57 | Spear.Math.Spatial3 |
53 | Spear.Math.Segment | 58 | Spear.Math.Sphere |
54 | Spear.Math.Spatial | 59 | Spear.Math.Triangle |
55 | Spear.Math.Spatial2 | 60 | Spear.Math.Utils |
56 | Spear.Math.Spatial3 | 61 | Spear.Math.Vector |
57 | Spear.Math.Sphere | 62 | Spear.Math.Vector.Vector |
58 | Spear.Math.Triangle | 63 | Spear.Math.Vector.Vector2 |
59 | Spear.Math.Utils | 64 | Spear.Math.Vector.Vector3 |
60 | Spear.Math.Vector | 65 | Spear.Math.Vector.Vector4 |
61 | Spear.Math.Vector.Vector | 66 | Spear.Physics.Collision |
62 | Spear.Math.Vector.Vector2 | 67 | Spear.Physics.RigidBody |
63 | Spear.Math.Vector.Vector3 | 68 | Spear.Prelude |
64 | Spear.Math.Vector.Vector4 | 69 | Spear.Render.Asset |
65 | Spear.Prelude | 70 | Spear.Render.Core |
66 | Spear.Render.AnimatedModel | 71 | Spear.Render.Core.Buffer |
67 | Spear.Render.Core | 72 | Spear.Render.Core.Constants |
68 | Spear.Render.Core.Buffer | 73 | Spear.Render.Core.Geometry |
69 | Spear.Render.Core.Constants | 74 | Spear.Render.Core.Pipeline |
70 | Spear.Render.Core.Geometry | 75 | Spear.Render.Core.Shader |
71 | Spear.Render.Core.Pipeline | 76 | Spear.Render.Core.State |
72 | Spear.Render.Core.Shader | 77 | Spear.Render.Core.Texture |
73 | Spear.Render.Core.State | 78 | Spear.Render.Immediate |
74 | Spear.Render.Immediate | 79 | Spear.Render.Shaders |
75 | Spear.Render.Material | 80 | Spear.Sound.Sound |
76 | Spear.Render.Model | 81 | Spear.Sound.State |
77 | Spear.Render.Program | 82 | Spear.Step |
78 | Spear.Render.StaticModel | 83 | Spear.Sys.Store |
79 | Spear.Scene.Graph | 84 | Spear.Sys.Store.ID |
80 | Spear.Scene.Loader | 85 | Spear.Sys.Timer |
81 | Spear.Scene.SceneResources | 86 | Spear.Window |
82 | Spear.Step | ||
83 | Spear.Sys.Store | ||
84 | Spear.Sys.Store.ID | ||
85 | Spear.Sys.Timer | ||
86 | Spear.Window | ||
87 | 87 | ||
88 | exposed: True | 88 | exposed: True |
89 | buildable: True | ||
90 | build-tools: hsc2hs >=0 | ||
91 | c-sources: | ||
92 | Spear/Sys/Timer/timer.c | ||
93 | Spear/cbits/stb/stb_image.c | ||
89 | 94 | ||
90 | buildable: True | 95 | includes: |
96 | Spear/Sys/Timer/timer.h | ||
97 | cbits/stb/stb_image.h | ||
91 | 98 | ||
92 | build-tools: hsc2hs -any | 99 | include-dirs: |
100 | . | ||
101 | Spear | ||
102 | Spear/Sys | ||
103 | Spear/cbits | ||
93 | 104 | ||
94 | c-sources: | 105 | hs-source-dirs: . |
95 | Spear/Assets/Image/Image.c | 106 | cc-options: |
96 | Spear/Assets/Image/BMP/BMP_load.c | 107 | -O2 |
97 | Spear/Assets/Model/Model.c | 108 | -Wno-unused-result |
98 | Spear/Assets/Model/MD2/MD2_load.c | ||
99 | Spear/Assets/Model/OBJ/cvector.c | ||
100 | Spear/Assets/Model/OBJ/OBJ_load.c | ||
101 | Spear/Render/RenderModel.c | ||
102 | Spear/Sys/Timer/timer.c | ||
103 | 109 | ||
104 | includes: | 110 | ghc-options: -O2 |
105 | Spear/Assets/Image/BMP/BMP_load.h | 111 | ghc-prof-options: |
106 | Spear/Assets/Image/Image.h | 112 | -O2 |
107 | Spear/Assets/Image/Image_error_code.h | 113 | -g |
108 | Spear/Assets/Image/sys_types.h | 114 | -prof |
109 | Spear/Assets/Model/MD2/MD2_load.h | 115 | -fprof-auto |
110 | Spear/Assets/Model/OBJ/OBJ_load.h | 116 | -fprof-cafs |
111 | Spear/Assets/Model/OBJ/cvector.h | 117 | -rtsopts |
112 | Spear/Assets/Model/Model.h | ||
113 | Spear/Assets/Model/Model_error_code.h | ||
114 | Spear/Assets/Model/sys_types.h | ||
115 | Spear/Render/RenderModel.h | ||
116 | Spear/Sys/Timer/timer.h | ||
117 | 118 | ||
118 | include-dirs: | 119 | executable pong |
119 | . | 120 | hs-source-dirs: Demos/Pong |
120 | Spear | 121 | main-is: Main.hs |
121 | Spear/Assets/Image | 122 | other-modules: Pong |
122 | Spear/Assets/Image/BMP | 123 | build-depends: |
123 | Spear/Assets/Model | 124 | Spear, |
124 | Spear/Render | 125 | base |
125 | Spear/Sys | ||
126 | 126 | ||
127 | hs-source-dirs: . | 127 | ghc-options: -O2 |
128 | ghc-prof-options: | ||
129 | -O2 | ||
130 | -g | ||
131 | -prof | ||
132 | -fprof-auto | ||
133 | -fprof-cafs | ||
134 | -rtsopts | ||
128 | 135 | ||
129 | cc-options: -O2 -g -Wno-unused-result | 136 | executable balls |
130 | ghc-options: -O2 -g | 137 | hs-source-dirs: Demos/Balls |
131 | ghc-prof-options: -O2 -g -fprof-auto -fprof-cafs | 138 | main-is: Main.hs |
139 | build-depends: | ||
140 | Spear, | ||
141 | base | ||
132 | 142 | ||
133 | executable pong | 143 | ghc-options: -O2 |
134 | hs-source-dirs: Demos/Pong | 144 | ghc-prof-options: |
135 | main-is: Main.hs | 145 | -O2 |
136 | other-modules: Pong | 146 | -g |
137 | build-depends: base, Spear, OpenGL | 147 | -prof |
138 | ghc-options: -O2 -g | 148 | -fprof-auto |
139 | ghc-prof-options: -O2 -g -fprof-auto -fprof-cafs | 149 | -fprof-cafs |
150 | -rtsopts | ||