summaryrefslogtreecommitdiff
path: root/lambdacube-gl.cabal
blob: e36721fefaffbbd79c23360c01e7e1e6137cf944 (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
name:                lambdacube-gl
version:             0.5.0.3
synopsis:            OpenGL 3.3 Core Profile backend for LambdaCube 3D
description:         OpenGL 3.3 Core Profile backend for LambdaCube 3D
homepage:            http://lambdacube3d.com
license:             BSD3
license-file:        LICENSE
author:              Csaba Hruska, Peter Divianszky
maintainer:          csaba.hruska@gmail.com
-- copyright:           
category:            Graphics
build-type:          Simple

extra-source-files:  examples/Hello.hs
                     examples/HelloEmbedded.hs
                     examples/hello.json
                     examples/hello.lc
                     examples/logo.png

cabal-version:       >=1.10

Flag example
  Description: Build with example
  Default: False

Flag testclient
  Description: Build with backend test client
  Default: False

source-repository head
  type:     git
  location: https://github.com/lambdacube3d/lambdacube-gl

library
  exposed-modules:
    LambdaCube.GL
    LambdaCube.GL.Backend
    LambdaCube.GL.Data
    LambdaCube.GL.Input
    LambdaCube.GL.Mesh
    LambdaCube.GL.Type
    LambdaCube.GL.Util
  -- other-modules:
  -- other-extensions:
  build-depends:
    base >=4.7 && <4.9,
    containers >=0.5 && <0.6,
    mtl >=2.2 && <2.3,
    bytestring >=0.10 && <0.11,
    vector >=0.11 && <0.12,
    vector-algorithms >=0.7 && <0.8,
    JuicyPixels >=3.2.7 && <3.3,
    OpenGLRaw >=3.1 && <3.2,
    lambdacube-ir == 0.3.*
  hs-source-dirs:      src
  default-language:    Haskell2010

executable lambdacube-gl-hello
  hs-source-dirs:   examples
  main-is:          Hello.hs
  default-language: Haskell2010

  -- CAUTION: When the build-depends change, please bump the git submodule in lambdacube-docker repository
  build-depends:
    base < 4.9,
    containers >=0.5 && <0.6,
    bytestring >=0.10 && <0.11,
    vector >=0.11 && <0.12,
    JuicyPixels >=3.2 && <3.3,
    aeson >= 0.9 && <1,
    GLFW-b >= 1.4 && <1.5,
    lambdacube-gl,
    lambdacube-ir == 0.3.*

  if flag(example)
    Buildable: True
  else
    Buildable: False

executable lambdacube-gl-test-client
  hs-source-dirs:   testclient
  main-is:          client.hs
  default-language: Haskell2010

  other-modules:    TestData

  -- CAUTION: When the build-depends change, please bump the git submodule in lambdacube-docker repository
  build-depends:
    base < 4.9,
    containers >=0.5 && <0.6,
    text >= 1.2 && <1.3,
    time >= 1.5 && <1.6,
    exceptions >= 0.8 && <0.9,
    bytestring >=0.10 && <0.11,
    base64-bytestring >=1 && <1.1,
    vector >=0.11 && <0.12,
    JuicyPixels >=3.2 && <3.3,
    aeson >= 0.9 && <1,
    websockets >= 0.9 && <1,
    network >= 2.6 && <2.7,
    OpenGLRaw >=3.1 && <3.2,
    GLFW-b >= 1.4 && <1.5,
    lambdacube-gl,
    lambdacube-ir == 0.3.*

  if flag(testclient)
    Buildable: True
  else
    Buildable: False