2016-07-16 22:01:35 +02:00
|
|
|
qmakeConfigurePhase() {
|
|
|
|
runHook preConfigure
|
2016-04-17 01:22:45 +02:00
|
|
|
|
2016-07-16 22:01:35 +02:00
|
|
|
qmake PREFIX=$out $qmakeFlags
|
2016-04-17 01:22:45 +02:00
|
|
|
|
2016-07-16 22:01:35 +02:00
|
|
|
runHook postConfigure
|
2016-04-17 01:22:45 +02:00
|
|
|
}
|
|
|
|
|
2016-07-16 22:01:35 +02:00
|
|
|
if [ -z "$dontUseQmakeConfigure" -a -z "$configurePhase" ]; then
|
|
|
|
configurePhase=qmakeConfigurePhase
|
|
|
|
fi
|
2016-04-17 01:22:45 +02:00
|
|
|
|
2016-07-16 22:01:35 +02:00
|
|
|
_qtModuleMultioutDevsPre() {
|
2016-04-17 01:22:45 +02:00
|
|
|
# We cannot simply set these paths in configureFlags because libQtCore retains
|
|
|
|
# references to the paths it was built with.
|
|
|
|
moveToOutput "bin" "${!outputDev}"
|
|
|
|
moveToOutput "include" "${!outputDev}"
|
|
|
|
|
|
|
|
# The destination directory must exist or moveToOutput will do nothing
|
|
|
|
mkdir -p "${!outputDev}/share"
|
|
|
|
moveToOutput "share/doc" "${!outputDev}"
|
2016-07-16 22:01:35 +02:00
|
|
|
}
|
2016-04-26 21:20:32 +02:00
|
|
|
|
2016-07-16 22:01:35 +02:00
|
|
|
_qtModuleMultioutDevsPost() {
|
2016-04-26 21:20:32 +02:00
|
|
|
# Move libtool archives and qmake project files to $dev/lib
|
|
|
|
if [ "z${!outputLib}" != "z${!outputDev}" ]; then
|
|
|
|
pushd "${!outputLib}"
|
2016-05-04 12:58:02 +02:00
|
|
|
if [ -d "lib" ]; then
|
2016-07-16 22:01:35 +02:00
|
|
|
find lib \( -name '*.a' -o -name '*.la' -o -name '*.prl' \) -print0 | \
|
2016-05-04 12:58:02 +02:00
|
|
|
while read -r -d $'\0' file; do
|
|
|
|
mkdir -p "${!outputDev}/$(dirname "$file")"
|
|
|
|
mv "${!outputLib}/$file" "${!outputDev}/$file"
|
|
|
|
done
|
|
|
|
fi
|
2016-04-26 21:20:32 +02:00
|
|
|
popd
|
|
|
|
fi
|
2016-04-17 01:22:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ -n "$NIX_QT_SUBMODULE" ]; then
|
2016-07-16 22:01:35 +02:00
|
|
|
preFixupHooks+=(_qtModuleMultioutDevsPre)
|
|
|
|
postFixupHooks+=(_qtModuleMultioutDevsPost)
|
2016-04-17 01:22:45 +02:00
|
|
|
fi
|