2017-09-09 14:39:41 +00:00
|
|
|
-- Initial hw.cabal generated by cabal init. For further documentation,
|
|
|
|
-- see http://haskell.org/cabal/users-guide/
|
|
|
|
|
|
|
|
name: hw
|
|
|
|
version: 0.0.0.0
|
|
|
|
-- synopsis:
|
|
|
|
-- description:
|
|
|
|
license: GPL-3
|
|
|
|
license-file: LICENSE
|
|
|
|
author: nek0
|
|
|
|
maintainer: nek0@chelnok.de
|
|
|
|
-- copyright:
|
|
|
|
category: Game
|
|
|
|
build-type: Simple
|
|
|
|
extra-source-files: ChangeLog.md
|
|
|
|
cabal-version: >=1.10
|
|
|
|
|
2017-11-18 10:02:55 +00:00
|
|
|
flag debug
|
|
|
|
description: Enable debug messages
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
|
|
|
flag warn
|
|
|
|
description: Enable warning messages
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
|
|
|
flag error
|
|
|
|
description: Enable error messages
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
2017-09-09 14:39:41 +00:00
|
|
|
executable hw
|
|
|
|
main-is: Main.hs
|
|
|
|
other-modules: Util
|
2017-09-19 15:27:49 +00:00
|
|
|
, Types
|
|
|
|
, Init
|
2017-09-09 14:39:41 +00:00
|
|
|
-- other-extensions:
|
|
|
|
default-extensions: OverloadedStrings
|
2017-09-19 15:27:49 +00:00
|
|
|
build-depends: base >=4.9
|
2017-09-09 14:39:41 +00:00
|
|
|
, affection
|
|
|
|
, sdl2
|
|
|
|
, linear
|
2017-09-19 15:27:49 +00:00
|
|
|
, spatial-math
|
2017-09-09 14:39:41 +00:00
|
|
|
, bytestring
|
|
|
|
, OpenGL
|
|
|
|
, OpenGLRaw
|
|
|
|
, GLUtil
|
|
|
|
, random
|
|
|
|
, vector
|
|
|
|
, wavefront
|
2017-09-19 15:27:49 +00:00
|
|
|
, shoot
|
2017-09-09 14:39:41 +00:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -Wall
|
2017-09-19 15:27:49 +00:00
|
|
|
extra-libraries: stdc++
|
2017-09-21 05:17:39 +00:00
|
|
|
|
|
|
|
flag examples
|
|
|
|
description: Build testing examples
|
|
|
|
default: False
|
|
|
|
|
|
|
|
executable example00
|
|
|
|
main-is: Main.hs
|
|
|
|
other-modules: Util
|
|
|
|
, Types
|
|
|
|
, Init
|
|
|
|
-- other-extensions:
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
if flag(examples)
|
|
|
|
build-depends: base >=4.9
|
|
|
|
, affection
|
|
|
|
, sdl2
|
|
|
|
, linear
|
|
|
|
, spatial-math
|
|
|
|
, bytestring
|
|
|
|
, OpenGL
|
|
|
|
, OpenGLRaw
|
|
|
|
, GLUtil
|
|
|
|
, random
|
|
|
|
, vector
|
|
|
|
, wavefront
|
|
|
|
, shoot
|
|
|
|
else
|
|
|
|
buildable: False
|
|
|
|
hs-source-dirs: examples/example00
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -Wall
|
|
|
|
extra-libraries: stdc++
|
2017-09-29 20:06:20 +00:00
|
|
|
|
|
|
|
executable example01
|
|
|
|
main-is: Main.hs
|
|
|
|
other-modules: Util
|
|
|
|
, Types
|
|
|
|
, Init
|
|
|
|
-- other-extensions:
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
build-depends: base >=4.9
|
|
|
|
, affection
|
|
|
|
, sdl2
|
|
|
|
, linear
|
|
|
|
, spatial-math
|
|
|
|
, bytestring
|
|
|
|
, OpenGL
|
|
|
|
, OpenGLRaw
|
|
|
|
, GLUtil
|
|
|
|
, random
|
|
|
|
, vector
|
|
|
|
, wavefront
|
|
|
|
, shoot
|
|
|
|
hs-source-dirs: examples/example01
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -Wall
|
|
|
|
extra-libraries: stdc++
|
2017-11-07 22:10:07 +00:00
|
|
|
|
|
|
|
executable example02
|
2017-11-18 10:16:19 +00:00
|
|
|
if flag(debug)
|
|
|
|
cpp-options: -DDEBUG
|
|
|
|
if flag(warn)
|
|
|
|
cpp-options: -DWARN
|
|
|
|
if flag(error)
|
|
|
|
cpp-options: -DERROR
|
2017-11-07 22:10:07 +00:00
|
|
|
main-is: Main.hs
|
|
|
|
other-modules: Util
|
|
|
|
, Types
|
|
|
|
, Init
|
2017-11-18 10:16:19 +00:00
|
|
|
, Logging
|
2017-11-07 22:10:07 +00:00
|
|
|
-- other-extensions:
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
build-depends: base >=4.9
|
|
|
|
, affection
|
|
|
|
, sdl2
|
|
|
|
, linear
|
|
|
|
, spatial-math
|
|
|
|
, bytestring
|
|
|
|
, OpenGL
|
|
|
|
, OpenGLRaw
|
|
|
|
, GLUtil
|
|
|
|
, random
|
|
|
|
, vector
|
|
|
|
, wavefront
|
|
|
|
, shoot
|
|
|
|
hs-source-dirs: examples/example02
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -Wall
|
|
|
|
extra-libraries: stdc++
|
2017-11-12 16:10:47 +00:00
|
|
|
|
|
|
|
executable example03
|
2017-11-18 10:02:55 +00:00
|
|
|
if flag(debug)
|
|
|
|
cpp-options: -DDEBUG
|
|
|
|
if flag(warn)
|
|
|
|
cpp-options: -DWARN
|
|
|
|
if flag(error)
|
|
|
|
cpp-options: -DERROR
|
2017-11-12 16:10:47 +00:00
|
|
|
main-is: Main.hs
|
|
|
|
other-modules: Util
|
|
|
|
, Types
|
|
|
|
, Init
|
2017-11-18 10:02:55 +00:00
|
|
|
, Logging
|
2017-11-12 16:10:47 +00:00
|
|
|
-- other-extensions:
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
build-depends: base >=4.9
|
|
|
|
, affection
|
|
|
|
, sdl2
|
|
|
|
, linear
|
|
|
|
, spatial-math
|
|
|
|
, bytestring
|
|
|
|
, OpenGL
|
|
|
|
, OpenGLRaw
|
|
|
|
, GLUtil
|
|
|
|
, random
|
|
|
|
, vector
|
|
|
|
, wavefront
|
|
|
|
, shoot
|
|
|
|
, split
|
2017-11-19 17:27:09 +00:00
|
|
|
, optparse-applicative
|
2017-11-12 16:10:47 +00:00
|
|
|
hs-source-dirs: examples/example03
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -Wall
|
|
|
|
extra-libraries: stdc++
|