aboutsummaryrefslogtreecommitdiff
path: root/game.cabal
blob: 937e780c89f997106405f0db0aaeefc49f613dc0 (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
cabal-version:      2.4
name:               game
version:            0.1.0.0
license:            MIT
license-file:       LICENSE
maintainer:         jjm@usebox.net
author:             Juan J. Martinez
homepage:           https://git.usebox.net/space-plat-hs/about/
synopsis:           A gamedev experiment (2D platform game).
extra-source-files:
    CHANGELOG.md
    README.md
    LICENSE

library
    exposed-modules:
        Game
        Game.State
        Game.Hud
        Game.Map
        Game.Sprites
        Game.BitmapFont
        Game.Entities
        Game.Entities.Types
        Game.Entities.Const
        Game.Entities.Common
        Game.Entities.Player
        Game.Entities.Entry
        Game.Entities.Exit
        Game.Entities.Effect
        Game.Entities.Pickup
        Game.Entities.Slime
        Game.Entities.Robot
        Game.Entities.Shooter
        Game.Entities.Blast
        Game.Entities.Runner
        Game.Entities.Tracker
        Game.Controller
        Game.Utils
        Game.Toaster

    hs-source-dirs:     src
    default-language:   GHC2021
    default-extensions:
        OverloadedStrings OverloadedRecordDot DuplicateRecordFields
        NoFieldSelectors

    ghc-options:        -Wall -Werror -O2 -j
    build-depends:
        base,
        text >=1.1.0.0 && <2.1,
        vector >=0.10.9.0 && <=0.14,
        containers,
        sdl2,
        sdl2-image,
        json,
        random

executable game
    main-is:          Main.hs
    hs-source-dirs:   app
    default-language: GHC2021
    ghc-options:      -Wall -Werror -with-rtsopts=--nonmoving-gc -O2
    build-depends:
        base,
        game