mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
ui: don't attempt to build hledger-ui on windows #376
This commit is contained in:
parent
560729a2a8
commit
34f4dc9dcd
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user