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 , transformers
, vector , vector
, vty >= 5.2 && < 5.8 , vty >= 5.2 && < 5.8
if os(windows)
buildable: False
if flag(threaded) if flag(threaded)
ghc-options: -threaded ghc-options: -threaded
if flag(old-locale) if flag(old-locale)

View File

@ -48,6 +48,17 @@ flags:
manual: false manual: false
default: 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" cpp-options: -DVERSION="0.28"
executables: executables:
@ -85,6 +96,8 @@ executables:
- vector - vector
- vty >= 5.2 && < 5.8 - vty >= 5.2 && < 5.8
when: when:
- condition: os(windows)
buildable: false
- condition: flag(threaded) - condition: flag(threaded)
ghc-options: -threaded ghc-options: -threaded
- condition: flag(old-locale) - condition: flag(old-locale)