Skip to content

Commit

Permalink
temp: Check if readDesc is called for sdl
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano committed Aug 10, 2024
1 parent 92df3f7 commit 9bf770a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Distribution.Simple
( Args
, UserHooks
, confHook
, readDesc
, defaultMain
, defaultMainWithHooks
, simpleUserHooks
Expand Down Expand Up @@ -37,6 +38,7 @@ main = case buildOS of
Windows -> defaultMainWithHooks simpleUserHooks
{ confHook = sdlConfHook
, preBuild = sdlPreBuild
, readDesc = sdlReadDesc
}
_ -> defaultMain

Expand Down Expand Up @@ -86,3 +88,8 @@ sdlPreBuild args flags = do
print flags
putStrLn "\ESC[34mRunning custom SDL pre-build hook\ESC[m"
pure emptyHookedBuildInfo

sdlReadDesc :: IO (GenericPackageDescription)
sdlReadDesc = do
putStrLn "\ESC[34mReading .cabal file\ESC[m"
pure Nothing

0 comments on commit 9bf770a

Please sign in to comment.