-
Notifications
You must be signed in to change notification settings - Fork 16
/
GLUtil.cabal
87 lines (80 loc) · 3.14 KB
/
GLUtil.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
Name: GLUtil
Version: 0.10.4
Synopsis: Miscellaneous OpenGL utilities.
License: BSD3
License-file: LICENSE
Author: Anthony Cowley
Maintainer: acowley@gmail.com
Copyright: (c) 2012,2013 Anthony Cowley
Category: Graphics
Build-type: Simple
Description: Helpers for working with shaders, buffer objects, and
textures in OpenGL.
Cabal-version: 2.0
Extra-Source-Files: examples/example1.hs,
examples/TGA.hs,
examples/images/hello1.tga,
examples/images/hello2.tga,
examples/shaders/hello-gl.frag,
examples/shaders/hello-gl.vert,
CHANGELOG.md
tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.3,
GHC == 8.6.5, GHC == 8.8.3, GHC == 8.10.1
source-repository head
type: git
location: http://github.com/acowley/GLUtil.git
flag demos
description: Build demonstration programs
default: False
manual: True
Library
Exposed-modules: Graphics.GLUtil,
Graphics.GLUtil.GLError,
Graphics.GLUtil.Shaders,
Graphics.GLUtil.ShaderProgram,
Graphics.GLUtil.BufferObjects,
Graphics.GLUtil.Camera2D,
Graphics.GLUtil.Camera3D,
Graphics.GLUtil.Drawing,
Graphics.GLUtil.Textures,
Graphics.GLUtil.JuicyTextures,
Graphics.GLUtil.VertexArrayObjects,
Graphics.GLUtil.Linear,
Graphics.GLUtil.TypeMapping,
Graphics.GLUtil.Viewport
Build-depends: base >= 4.2 && < 5,
bytestring,
array,
containers >= 0.5,
directory,
filepath,
linear >= 1.1.3,
JuicyPixels >= 3,
OpenGLRaw >= 3.0 && < 3.4,
OpenGL >= 3 && < 3.1,
transformers >= 0.3,
vector >= 0.7
if (impl(ghc >= 7.10.1) && (!os(windows)))
-- Build-depends: hpp >= 0.3.1 && < 0.7
Build-tool-depends: hpp:hpp >= 0.3.1 && < 0.7
if impl(ghc >= 8.8.1)
-- As of GHC 8.8.1, GHC started complaining about -optP--cpp when profling
-- is enabled. See https://gitlab.haskell.org/ghc/ghc/issues/17185.
GHC-Options: -pgmP "hpp --cpp -P"
else
GHC-Options: -pgmPhpp -optP--cpp -optP-P
else
Build-tool-depends: cpphs:cpphs
GHC-Options: -pgmPcpphs -optP--cpp -optP--hashes
GHC-Options: -O2 -Wall
HS-Source-Dirs: src
default-language: Haskell2010
executable example1
if !flag(demos)
buildable: False
main-is: example1.hs
other-modules: TGA
build-depends: base, bytestring, binary, filepath, OpenGL, GLUtil
, GLFW-b >= 3.3.0.0 && < 3.4
hs-source-dirs: examples
default-language: Haskell2010