Call parent postConf hooks in setup scripts.

parent c95fd36c
......@@ -100,7 +100,8 @@ main = defaultMainWithHooks qtahHooks
qtahHooks :: UserHooks
qtahHooks = simpleUserHooks
{ hookedPrograms = [generatorProgram, listenerGenProgram, makeProgram]
, postConf = \_ cf _ lbi -> do generateSources cf lbi
, postConf = \args cf pd lbi -> do generateSources cf lbi
postConf simpleUserHooks args cf pd lbi
, buildHook = \pd lbi uh bf -> do doBuild lbi bf
buildHook simpleUserHooks pd lbi uh bf
, copyHook = \pd lbi uh cf -> do let verbosity = fromFlagOrDefault normal $ copyVerbosity cf
......
......@@ -106,9 +106,10 @@ main = defaultMainWithHooks qtahHooks
qtahHooks :: UserHooks
qtahHooks = simpleUserHooks
{ hookedPrograms = [generatorProgram]
, postConf = \_ cf _ lbi -> do libDir <- lookupQtahCppLibDir lbi
storeQtahCppLibDir libDir
generateSources cf lbi libDir
, postConf = \args cf pd lbi -> do libDir <- lookupQtahCppLibDir lbi
storeQtahCppLibDir libDir
generateSources cf lbi libDir
postConf simpleUserHooks args cf pd lbi
, preBuild = \_ _ -> addLibDir
, preTest = \_ _ -> addLibDir
, preCopy = \_ _ -> addLibDir -- Not sure if necessary, but doesn't hurt.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment