wafHook: allow overriding phases
This makes the wafHook a lot closer to the structure of standard hooks like cmake and ninja.
This commit is contained in:
parent
f84107c857
commit
c6791b2117
@ -22,6 +22,10 @@ wafConfigurePhase() {
|
|||||||
runHook postConfigure
|
runHook postConfigure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ -z "${dontUseWafConfigure-}" -a -z "${configurePhase-}" ]; then
|
||||||
|
configurePhase=wafConfigurePhase
|
||||||
|
fi
|
||||||
|
|
||||||
wafBuildPhase () {
|
wafBuildPhase () {
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
@ -41,6 +45,10 @@ wafBuildPhase () {
|
|||||||
runHook postBuild
|
runHook postBuild
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ -z "${dontUseWafBuild-}" -a -z "${buildPhase-}" ]; then
|
||||||
|
buildPhase=wafBuildPhase
|
||||||
|
fi
|
||||||
|
|
||||||
wafInstallPhase() {
|
wafInstallPhase() {
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
@ -60,6 +68,6 @@ wafInstallPhase() {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
}
|
}
|
||||||
|
|
||||||
configurePhase=wafConfigurePhase
|
if [ -z "${dontUseWafInstall-}" -a -z "${installPhase-}" ]; then
|
||||||
buildPhase=wafBuildPhase
|
installPhase=wafInstallPhase
|
||||||
installPhase=wafInstallPhase
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user