qt56.qtbase: create symlink farm in one pass
This commit is contained in:
parent
8ec5adc953
commit
ca34e075e4
@ -112,7 +112,7 @@ EOF
|
|||||||
|
|
||||||
# Set PATH to find qmake first in a preConfigure hook
|
# Set PATH to find qmake first in a preConfigure hook
|
||||||
# It must run after all the envHooks!
|
# It must run after all the envHooks!
|
||||||
postHooks+=(_qtSetQmakePath)
|
preConfigureHooks+=(_qtSetQmakePath)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
qt5LinkModuleDir() {
|
qt5LinkModuleDir() {
|
||||||
@ -122,10 +122,23 @@ qt5LinkModuleDir() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
qt5LinkModuleDir @out@ "lib"
|
NIX_QT5_MODULES="${NIX_QT5_MODULES}${NIX_QT5_MODULES:+:}@out@"
|
||||||
|
NIX_QT5_MODULES_DEV="${NIX_QT5_MODULES_DEV}${NIX_QT5_MODULES_DEV:+:}@dev@"
|
||||||
|
|
||||||
qt5LinkModuleDir @dev@ "bin"
|
_qtLinkAllModules() {
|
||||||
qt5LinkModuleDir @dev@ "include"
|
IFS=: read -a modules <<< $NIX_QT5_MODULES
|
||||||
qt5LinkModuleDir @dev@ "lib"
|
for module in ${modules[@]}; do
|
||||||
qt5LinkModuleDir @dev@ "mkspecs"
|
qt5LinkModuleDir "$module" "lib"
|
||||||
qt5LinkModuleDir @dev@ "share"
|
done
|
||||||
|
|
||||||
|
IFS=: read -a modules <<< $NIX_QT5_MODULES_DEV
|
||||||
|
for module in ${modules[@]}; do
|
||||||
|
qt5LinkModuleDir "$module" "bin"
|
||||||
|
qt5LinkModuleDir "$module" "include"
|
||||||
|
qt5LinkModuleDir "$module" "lib"
|
||||||
|
qt5LinkModuleDir "$module" "mkspecs"
|
||||||
|
qt5LinkModuleDir "$module" "share"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
preConfigureHooks+=(_qtLinkAllModules)
|
||||||
|
@ -1,7 +1,2 @@
|
|||||||
qt5LinkModuleDir @out@ "lib"
|
NIX_QT5_MODULES="${NIX_QT5_MODULES}${NIX_QT5_MODULES:+:}@out@"
|
||||||
|
NIX_QT5_MODULES_DEV="${NIX_QT5_MODULES_DEV}${NIX_QT5_MODULES_DEV:+:}@dev@"
|
||||||
qt5LinkModuleDir @dev@ "bin"
|
|
||||||
qt5LinkModuleDir @dev@ "include"
|
|
||||||
qt5LinkModuleDir @dev@ "lib"
|
|
||||||
qt5LinkModuleDir @dev@ "mkspecs"
|
|
||||||
qt5LinkModuleDir @dev@ "share"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user