Source

udon / udon.cabal

name:                udon
version:             0.2
synopsis:            Easy daemon management tool
description:         Easy daemon management tool
category:            System
license:             BSD3
license-file:        LICENSE
author:              NAKAMURA Yoshitaka
maintainer:          arumakanoy@gmail.com
cabal-version:       >= 1.2
build-type:          Simple

flag debug
    description: Enable debug option
    default: False

executable udon
    hs-source-dirs:      src
    build-depends:       base >= 4 && < 5, bytestring, containers, directory, filepath, mtl, network, parsec >= 3, stm, time, unix
    main-is:             Main-Client.hs
    ghc-options:         -O2

executable udon-master
    hs-source-dirs:      src
    build-depends:       base >= 4 && < 5, bytestring, containers, directory, filepath, mtl, network, stm, time, unix
    main-is:             Main-Master.hs
    ghc-options:         -O2
    extensions:          CPP

    if flag(debug)
        cpp-options:     -DDEBUG

executable udon-log
    hs-source-dirs:      src
    build-depends:       base >= 4 && < 5, bytestring, mtl, time, unix
    main-is:             Main-Logger.hs
    ghc-options:         -O2

executable udon-sendmail
    hs-source-dirs:      src
    build-depends:       base >= 4 && < 5, unix
    main-is:             Main-SendMail.hs
    ghc-options:         -O2