qt55.qmakeHook: fix error when package builds no libraries
This commit is contained in:
parent
65a9fa8cdc
commit
099c59ea4e
|
@ -57,11 +57,13 @@ _qtMultioutModuleDevs() {
|
||||||
# Move libtool archives and qmake project files to $dev/lib
|
# Move libtool archives and qmake project files to $dev/lib
|
||||||
if [ "z${!outputLib}" != "z${!outputDev}" ]; then
|
if [ "z${!outputLib}" != "z${!outputDev}" ]; then
|
||||||
pushd "${!outputLib}"
|
pushd "${!outputLib}"
|
||||||
find lib -name '*.a' -o -name '*.la' -o -name '*.prl' -print0 | \
|
if [ -d "lib" ]; then
|
||||||
while read -r -d $'\0' file; do
|
find lib -name '*.a' -o -name '*.la' -o -name '*.prl' -print0 | \
|
||||||
mkdir -p "${!outputDev}/$(dirname "$file")"
|
while read -r -d $'\0' file; do
|
||||||
mv "${!outputLib}/$file" "${!outputDev}/$file"
|
mkdir -p "${!outputDev}/$(dirname "$file")"
|
||||||
done
|
mv "${!outputLib}/$file" "${!outputDev}/$file"
|
||||||
|
done
|
||||||
|
fi
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue