affection/affection.cabal

180 lines
5.9 KiB
Plaintext
Raw Permalink Normal View History

2016-03-25 08:41:22 +00:00
name: affection
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
2020-05-04 11:08:27 +00:00
version: 0.0.0.10
2016-03-25 08:41:22 +00:00
synopsis: A simple Game Engine using SDL
2017-02-17 16:15:06 +00:00
description: This package contains Affection, a simple game engine
2017-12-23 23:39:52 +00:00
written in Haskell using SDL.
2017-02-17 16:15:06 +00:00
This Engine is still work in progress and even minor
version bumps may contain breaking api changes.
2016-03-25 08:41:22 +00:00
homepage: https://github.com/nek0/affection#readme
license: LGPL-3
license-file: LICENSE
author: nek0
2023-11-24 17:41:42 +00:00
maintainer: nek0@nek0.eu
2016-03-25 08:41:22 +00:00
category: Game
build-type: Simple
2017-12-23 23:39:52 +00:00
extra-source-files: ChangeLog.md
2016-03-25 08:41:22 +00:00
-- Extra files to be distributed with the package, such as examples or a
-- README.
-- extra-source-files:
2020-05-03 23:27:44 +00:00
cabal-version: >=2.0
2016-03-25 08:41:22 +00:00
2016-05-29 16:01:23 +00:00
source-repository head
type: git
2023-11-24 17:41:42 +00:00
location: https://gitea.nek0.eu/nek0/affection.git
2016-05-29 16:01:23 +00:00
2017-12-22 05:30:24 +00:00
flag verbose
2017-12-22 05:28:58 +00:00
description: Enable verbose debug messages
default: False
manual: True
2017-12-12 12:10:00 +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
2016-05-29 16:01:23 +00:00
flag examples
description: Build example programs
default: False
2016-03-25 08:41:22 +00:00
library
2017-12-22 05:28:58 +00:00
if flag(verbose)
cpp-options: -DVERBOSE
2017-12-12 12:10:00 +00:00
if flag(debug)
cpp-options: -DDEBUG
if flag(warn)
cpp-options: -DWARN
if flag(error)
cpp-options: -DERROR
2016-03-25 08:41:22 +00:00
exposed-modules: Affection
2017-12-12 12:10:00 +00:00
, Affection.Logging
2016-03-26 02:50:39 +00:00
, Affection.Types
2020-05-03 23:27:44 +00:00
, Affection.Class
2017-03-05 15:39:37 +00:00
, Affection.StateMachine
2017-09-07 04:23:01 +00:00
, Affection.Util
2017-11-27 04:27:52 +00:00
, Affection.MessageBus
2017-11-26 19:25:06 +00:00
, Affection.MessageBus.Class
, Affection.MessageBus.Message
2017-11-29 16:49:56 +00:00
, Affection.MessageBus.Message.Class
, Affection.MessageBus.Message.WindowMessage
2017-12-12 12:10:55 +00:00
, Affection.MessageBus.Message.KeyboardMessage
2017-12-13 03:37:16 +00:00
, Affection.MessageBus.Message.MouseMessage
2018-01-09 17:40:54 +00:00
, Affection.MessageBus.Message.JoystickMessage
2017-12-13 14:19:53 +00:00
, Affection.Subsystems
2017-11-27 22:30:11 +00:00
, Affection.Subsystems.Class
, Affection.Subsystems.AffectionWindow
2017-12-12 12:10:55 +00:00
, Affection.Subsystems.AffectionKeyboard
2017-12-13 03:37:16 +00:00
, Affection.Subsystems.AffectionMouse
2018-01-09 17:40:54 +00:00
, Affection.Subsystems.AffectionJoystick
2016-03-26 02:50:39 +00:00
default-extensions: OverloadedStrings
2020-05-03 23:27:44 +00:00
, TypeFamilies
, AllowAmbiguousTypes
2016-03-26 02:50:39 +00:00
2016-03-25 08:41:22 +00:00
-- Modules included in this library but not exported.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
2019-12-20 10:54:33 +00:00
-- other-extensions: GADTs
-- , KindSignatures
-- , FlexibleInstances
-- , MultiParamTypeClasses
-- , UndecidableInstances
2016-03-25 08:41:22 +00:00
hs-source-dirs: src
default-language: Haskell2010
2023-04-20 08:32:51 +00:00
ghc-options: -threaded -Wall
2016-03-25 08:41:22 +00:00
-- Other library packages from which modules are imported.
2017-12-23 23:39:52 +00:00
build-depends: base >=4.9 && < 5
2022-07-09 21:26:37 +00:00
, sdl2 >= 2.5
2017-11-27 04:27:52 +00:00
, linear
2016-03-25 10:43:31 +00:00
, text
2016-03-26 02:50:39 +00:00
, mtl
, monad-loops
, monad-parallel
, containers
2019-12-20 10:54:33 +00:00
, clock >= 0.8
, glib
2017-03-22 15:59:24 +00:00
, bytestring
2017-09-09 14:47:24 +00:00
, OpenGL
2020-10-15 17:45:30 +00:00
, OpenGLRaw
2017-11-26 12:59:59 +00:00
, stm
2017-12-13 03:37:16 +00:00
, uuid
2018-01-09 17:40:54 +00:00
, vector
2022-07-10 02:18:22 +00:00
, resourcet
2016-03-25 08:41:22 +00:00
2017-12-23 23:39:52 +00:00
-- This example shows the message system. only makes sense when compiling with
-- verbose flag.
2017-12-13 14:19:53 +00:00
executable example00
2017-12-28 15:57:11 +00:00
hs-source-dirs: examples/example00
main-is: Main.hs
2017-12-13 14:19:53 +00:00
ghc-options: -threaded -Wall
default-language: Haskell2010
default-extensions: OverloadedStrings
2022-12-01 18:56:25 +00:00
build-depends: base >=4.9 && < 5
, affection
, sdl2 >= 2.5
, stm
if !flag(examples)
2017-12-13 14:19:53 +00:00
buildable: False
2017-12-28 15:57:11 +00:00
-- A small game of life implementation
executable example01
hs-source-dirs: examples/example01
main-is: Main.hs
other-modules: Types
ghc-options: -threaded -Wall
default-language: Haskell2010
default-extensions: OverloadedStrings
2022-12-01 18:56:25 +00:00
build-depends: base >=4.9 && < 5
, affection
, sdl2 >= 2.5
, stm
, OpenGL
, random
, containers
, linear
, matrix
, nanovg >= 0.6.0.0
, deepseq
if !flag(examples)
2017-12-28 15:57:11 +00:00
buildable: False
2018-12-26 22:19:20 +00:00
-- Another small game of life implementation
executable example02
hs-source-dirs: examples/example02
main-is: Main.hs
other-modules: Types
ghc-options: -threaded -Wall
default-language: Haskell2010
default-extensions: OverloadedStrings
2022-12-01 18:56:25 +00:00
build-depends: base >=4.9 && < 5
, affection
, sdl2 >= 2.5
, stm
, OpenGL
, random
, containers
, linear
, matrix
, nanovg >= 0.6.0.0
, deepseq
if !flag(examples)
2018-12-26 22:19:20 +00:00
buildable: False