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
 | 
			
		||||
    , vector
 | 
			
		||||
    , vty >= 5.2 && < 5.8
 | 
			
		||||
  if os(windows)
 | 
			
		||||
    buildable: False
 | 
			
		||||
  if flag(threaded)
 | 
			
		||||
    ghc-options: -threaded
 | 
			
		||||
  if flag(old-locale)
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user