Allow tui flag for windows as well
This commit is contained in:
		
							parent
							
								
									0300d8f2cc
								
							
						
					
					
						commit
						64c1d63d33
					
				@ -36,7 +36,7 @@ source-repository head
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
flag tui
 | 
					flag tui
 | 
				
			||||||
  description:
 | 
					  description:
 | 
				
			||||||
    Build the brick powered tui (ghcup tui). This is disabled on windows.
 | 
					    Build the brick powered tui (ghcup tui).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  default:     False
 | 
					  default:     False
 | 
				
			||||||
  manual:      True
 | 
					  manual:      True
 | 
				
			||||||
@ -236,7 +236,7 @@ library
 | 
				
			|||||||
      , unix             ^>=2.7
 | 
					      , unix             ^>=2.7
 | 
				
			||||||
      , unix-bytestring  ^>=0.3.7.3
 | 
					      , unix-bytestring  ^>=0.3.7.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (flag(tui) && !os(windows))
 | 
					  if flag(tui)
 | 
				
			||||||
    cpp-options:   -DBRICK
 | 
					    cpp-options:   -DBRICK
 | 
				
			||||||
    build-depends: vty ^>=6.0
 | 
					    build-depends: vty ^>=6.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -284,7 +284,7 @@ library ghcup-optparse
 | 
				
			|||||||
  if flag(internal-downloader)
 | 
					  if flag(internal-downloader)
 | 
				
			||||||
    cpp-options: -DINTERNAL_DOWNLOADER
 | 
					    cpp-options: -DINTERNAL_DOWNLOADER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (flag(tui) && !os(windows))
 | 
					  if flag(tui)
 | 
				
			||||||
    cpp-options:   -DBRICK
 | 
					    cpp-options:   -DBRICK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if os(windows)
 | 
					  if os(windows)
 | 
				
			||||||
@ -320,13 +320,12 @@ executable ghcup
 | 
				
			|||||||
  if flag(internal-downloader)
 | 
					  if flag(internal-downloader)
 | 
				
			||||||
    cpp-options: -DINTERNAL_DOWNLOADER
 | 
					    cpp-options: -DINTERNAL_DOWNLOADER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (flag(tui) && !os(windows))
 | 
					  if flag(tui)
 | 
				
			||||||
    cpp-options:   -DBRICK
 | 
					    cpp-options:   -DBRICK
 | 
				
			||||||
    other-modules: BrickMain
 | 
					    other-modules: BrickMain
 | 
				
			||||||
    build-depends:
 | 
					    build-depends:
 | 
				
			||||||
      , brick         ^>=2.1
 | 
					      , brick         ^>=2.1
 | 
				
			||||||
      , transformers  ^>=0.5
 | 
					      , transformers  ^>=0.5
 | 
				
			||||||
      , unix          ^>=2.7
 | 
					 | 
				
			||||||
      , vty           ^>=6.0
 | 
					      , vty           ^>=6.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if os(windows)
 | 
					  if os(windows)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user