ui: don't attempt to build hledger-ui on windows #376

This commit is contained in:
Simon Michael 2016-07-22 12:30:12 -07:00
parent 560729a2a8
commit 34f4dc9dcd
2 changed files with 15 additions and 0 deletions

View File

@ -79,6 +79,8 @@ executable hledger-ui
, transformers
, vector
, vty >= 5.2 && < 5.8
if os(windows)
buildable: False
if flag(threaded)
ghc-options: -threaded
if flag(old-locale)

View File

@ -48,6 +48,17 @@ flags:
manual: false
default: false
# curses is required to build terminfo for vty for hledger-ui.
# On POSIX systems it might be not present.
# On windows it's very likely not present, but possibly it could be.
# Ideally we'd like to
# on POSIX: give a clear error ("install your system libcurses-dev package") if not present
# on windows: quietly skip building if not present, build if it is present
# curses
# default: True
# description:
# For now, just don't build hledger-ui on windows
cpp-options: -DVERSION="0.28"
executables:
@ -85,6 +96,8 @@ executables:
- vector
- vty >= 5.2 && < 5.8
when:
- condition: os(windows)
buildable: false
- condition: flag(threaded)
ghc-options: -threaded
- condition: flag(old-locale)