packages feed

sdl2-compositor-1.2.0.7: sdl2-compositor.cabal

-- Initial sdl2-compositor.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                sdl2-compositor
version:             1.2.0.7
synopsis:            image compositing with sdl2 - declarative style

description: This package provides tools for simple image composition
             through the means of the SDL library, version 2.  You can
             combine, translate, rotate, blend, modulate colors and
             draw in a declarative way.

license:             GPL-3
license-file:        LICENSE
author:              Sebastian Jordan
maintainer:          sebastian.jordan.mail@googlemail.com
copyright:           (c) 2015  Sebastian Jordan
category:            Graphics
build-type:          Simple
extra-source-files:  example.hs,
                     resolution-independent.hs,
                     font-test.hs
cabal-version:       >=1.10

flag BuildExamples
  Description: Enable examples
  Default: False

library
  exposed-modules:     SDL.Compositor,
                       SDL.Compositor.Manipulator,
                       SDL.Compositor.Blender,
                       SDL.Compositor.Drawer,
                       SDL.Compositor.ResIndependent,
                       SDL.Data.Texture,
                       SDL.Data.Cache
  -- other-modules:
  -- other-extensions:
  build-depends:       base >=4.8 && < 5,
                       sdl2 >= 2.0,
                       transformers >= 0.4,
                       linear >= 1.19,
                       stm >= 2.3,
                       lrucache >= 1.2,
                       text,
                       QuickCheck,
                       lens,
                       StateVar
  -- hs-source-dirs:
  default-language:    Haskell2010

executable sdl2-comp-example
  if flag(BuildExamples)
    build-depends: base, sdl2, linear, lens, StateVar, text
  else
    buildable: False
  main-is: example.hs
  default-language: Haskell2010

executable sdl2-comp-res-independent
  if flag(BuildExamples)
    build-depends: base, sdl2, linear, lens, StateVar, text
  else
    buildable: False
  main-is: resolution-independent.hs
  default-language: Haskell2010

source-repository head
  type: darcs
  location: http://hub.darcs.net/seppeljordan/sdl2-compositor

test-suite unittests
  type: exitcode-stdio-1.0
  main-is: Cache.hs
  hs-source-dirs: tests
  build-depends: base, QuickCheck, hspec, hspec-core,
                 Cabal, sdl2-compositor, stm, lrucache
  default-language: Haskell2010