summaryrefslogtreecommitdiff
path: root/lambdacube-gl.cabal
diff options
context:
space:
mode:
authorCsaba Hruska <csaba.hruska@gmail.com>2016-02-17 10:46:11 +0100
committerCsaba Hruska <csaba.hruska@gmail.com>2016-02-17 10:46:11 +0100
commit33e873f2b5d6b9c6b31b8679df1625eb88f8a39d (patch)
tree6b5a529f15af2a0df125d05caca649b0d03f806f /lambdacube-gl.cabal
parent200517cace521fe9dd2195a497e14030b0303df5 (diff)
cabalise hello and testclient
Diffstat (limited to 'lambdacube-gl.cabal')
-rw-r--r--lambdacube-gl.cabal73
1 files changed, 67 insertions, 6 deletions
diff --git a/lambdacube-gl.cabal b/lambdacube-gl.cabal
index 0f174b9..2d62216 100644
--- a/lambdacube-gl.cabal
+++ b/lambdacube-gl.cabal
@@ -19,6 +19,14 @@ extra-source-files: examples/Hello.hs
19 19
20cabal-version: >=1.10 20cabal-version: >=1.10
21 21
22Flag example
23 Description: Build with example
24 Default: False
25
26Flag testclient
27 Description: Build with backend test client
28 Default: False
29
22source-repository head 30source-repository head
23 type: git 31 type: git
24 location: https://github.com/lambdacube3d/lambdacube-gl 32 location: https://github.com/lambdacube3d/lambdacube-gl
@@ -36,13 +44,66 @@ library
36 -- other-extensions: 44 -- other-extensions:
37 build-depends: 45 build-depends:
38 base >=4.7 && <4.9, 46 base >=4.7 && <4.9,
39 containers >=0.5 && <0.6, 47 containers >=0.5 && <0.6,
40 mtl >=2.2 && <2.3, 48 mtl >=2.2 && <2.3,
41 bytestring >=0.10 && <0.11, 49 bytestring >=0.10 && <0.11,
42 vector >=0.11 && <0.12, 50 vector >=0.11 && <0.12,
43 vector-algorithms >=0.7 && <0.8, 51 vector-algorithms >=0.7 && <0.8,
44 JuicyPixels >=3.2.7 && <3.3, 52 JuicyPixels >=3.2.7 && <3.3,
45 OpenGLRaw >=3.1 && <3.2, 53 OpenGLRaw >=3.1 && <3.2,
46 lambdacube-ir == 0.3.* 54 lambdacube-ir == 0.3.*
47 hs-source-dirs: src 55 hs-source-dirs: src
48 default-language: Haskell2010 56 default-language: Haskell2010
57
58executable lambdacube-gl-hello
59 hs-source-dirs: examples
60 main-is: Hello.hs
61 default-language: Haskell2010
62
63 -- CAUTION: When the build-depends change, please bump the git submodule in lambdacube-docker repository
64 build-depends:
65 base < 4.9,
66 containers >=0.5 && <0.6,
67 bytestring >=0.10 && <0.11,
68 vector >=0.11 && <0.12,
69 JuicyPixels >=3.2 && <3.3,
70 aeson >= 0.9 && <1,
71 GLFW-b >= 1.4 && <1.5,
72 lambdacube-gl,
73 lambdacube-ir == 0.3.*
74
75 if flag(example)
76 Buildable: True
77 else
78 Buildable: False
79
80executable lambdacube-gl-test-client
81 hs-source-dirs: testclient
82 main-is: client.hs
83 default-language: Haskell2010
84
85 other-modules: TestData
86
87 -- CAUTION: When the build-depends change, please bump the git submodule in lambdacube-docker repository
88 build-depends:
89 base < 4.9,
90 containers >=0.5 && <0.6,
91 text >= 1.2 && <1.3,
92 time >= 1.5 && <1.6,
93 exceptions >= 0.8 && <0.9,
94 bytestring >=0.10 && <0.11,
95 base64-bytestring >=1 && <1.1,
96 vector >=0.11 && <0.12,
97 JuicyPixels >=3.2 && <3.3,
98 aeson >= 0.9 && <1,
99 websockets >= 0.9 && <1,
100 network >= 2.6 && <2.7,
101 OpenGLRaw >=3.1 && <3.2,
102 GLFW-b >= 1.4 && <1.5,
103 lambdacube-gl,
104 lambdacube-ir == 0.3.*
105
106 if flag(testclient)
107 Buildable: True
108 else
109 Buildable: False