Test the pre-existing Qt 5.4.1 install on Appveyor

coverity_scan
Alexander "Ace" Olofsson 10 years ago
parent a1e29162bd
commit 9b09c7bbb0

@ -224,9 +224,11 @@ if [ -z $SKIP_DOWNLOAD ]; then
Ogre-1.9-win$BITS.7z Ogre-1.9-win$BITS.7z
# Qt # Qt
download "Qt 4.8.6" \ if [ -z $APPVEYOR ]; then
http://sourceforge.net/projects/qt64ng/files/qt/$ARCHNAME/4.8.6/msvc2013/qt-4.8.6-x$ARCHSUFFIX-msvc2013.7z \ download "Qt 4.8.6" \
qt$BITS-4.8.6.7z http://sourceforge.net/projects/qt64ng/files/qt/$ARCHNAME/4.8.6/msvc2013/qt-4.8.6-x$ARCHSUFFIX-msvc2013.7z \
qt$BITS-4.8.6.7z
fi
# SDL2 # SDL2
download "SDL 2.0.3" \ download "SDL 2.0.3" \
@ -281,6 +283,7 @@ else
-DBOOST_LIBRARYDIR="$BOOST_SDK/lib$BITS-msvc-12.0" -DBOOST_LIBRARYDIR="$BOOST_SDK/lib$BITS-msvc-12.0"
fi fi
# Bullet # Bullet
printf "Bullet 2.83.5... " printf "Bullet 2.83.5... "
cd $DEPS_INSTALL cd $DEPS_INSTALL
@ -306,6 +309,7 @@ cd $DEPS
echo Done. echo Done.
# FFmpeg # FFmpeg
printf "FFmpeg 2.5.2... " printf "FFmpeg 2.5.2... "
cd $DEPS_INSTALL cd $DEPS_INSTALL
@ -349,6 +353,7 @@ cd $DEPS
echo Done. echo Done.
# MyGUI # MyGUI
printf "MyGUI 3.2.2... " printf "MyGUI 3.2.2... "
cd $DEPS_INSTALL cd $DEPS_INSTALL
@ -383,6 +388,7 @@ cd $DEPS
echo Done. echo Done.
# Ogre # Ogre
printf "Ogre 1.9... " printf "Ogre 1.9... "
cd $DEPS_INSTALL cd $DEPS_INSTALL
@ -412,6 +418,7 @@ cd $DEPS
echo Done. echo Done.
# OpenAL # OpenAL
printf "OpenAL-Soft 1.16.0... " printf "OpenAL-Soft 1.16.0... "
if [ -d openal-soft-1.16.0-bin ]; then if [ -d openal-soft-1.16.0-bin ]; then
@ -426,39 +433,51 @@ OPENAL_SDK="`real_pwd`/openal-soft-1.16.0-bin"
add_cmake_opts -DOPENAL_INCLUDE_DIR="$OPENAL_SDK/include/AL" \ add_cmake_opts -DOPENAL_INCLUDE_DIR="$OPENAL_SDK/include/AL" \
-DOPENAL_LIBRARY="$OPENAL_SDK/libs/Win$BITS/OpenAL32.lib" -DOPENAL_LIBRARY="$OPENAL_SDK/libs/Win$BITS/OpenAL32.lib"
echo Done. echo Done.
# Qt # Qt
printf "Qt 4.8.6... " if [ -z $APPVEYOR ]; then
cd $DEPS_INSTALL printf "Qt 4.8.6... "
cd $DEPS_INSTALL
if [ -d Qt ] && head -n2 Qt/BUILDINFO.txt | grep "4.8.6" > /dev/null; then if [ -d Qt ] && head -n2 Qt/BUILDINFO.txt | grep "4.8.6" > /dev/null; then
printf "Exists. " printf "Exists. "
elif [ -z $SKIP_EXTRACT ]; then elif [ -z $SKIP_EXTRACT ]; then
rm -rf Qt rm -rf Qt
eval 7z x -y $DEPS/qt$BITS-4.8.6.7z $STRIP eval 7z x -y $DEPS/qt$BITS-4.8.6.7z $STRIP
mv qt-4.8.6-* Qt mv qt-4.8.6-* Qt
fi fi
QT_SDK="`real_pwd`/Qt" QT_SDK="`real_pwd`/Qt"
cd $QT_SDK cd $QT_SDK
eval qtbinpatcher.exe $STRIP eval qtbinpatcher.exe $STRIP
add_cmake_opts -DQT_QMAKE_EXECUTABLE="$QT_SDK/bin/qmake.exe" add_cmake_opts -DQT_QMAKE_EXECUTABLE="$QT_SDK/bin/qmake.exe"
if [ $CONFIGURATION == "Debug" ]; then if [ $CONFIGURATION == "Debug" ]; then
SUFFIX="d4" SUFFIX="d4"
else
SUFFIX="4"
fi
add_runtime_dlls `pwd`/bin/Qt{Core,Gui,Network,OpenGL}$SUFFIX.dll
cd $DEPS
echo Done.
else else
SUFFIX="4" echo "Using Appveyor Qt 5 version."
fi if [ $PLATFORM == "win32" ]; then
add_runtime_dlls `pwd`/bin/Qt{Core,Gui,Network,OpenGL}$SUFFIX.dll QT_SDK="C:/Qt/5.4/msvc2013_opengl"
else
QT_SDK="C:/Qt/5.4/msvc2013_64_opengl"
fi
cd $DEPS add_cmake_opts -DDESIRED_QT_VERSION=4 \
-DQT_QMAKE_EXECUTABLE="$QT_SDK/bin/qmake.exe"
fi
echo Done.
# SDL2 # SDL2
printf "SDL 2.0.3... " printf "SDL 2.0.3... "
@ -546,11 +565,13 @@ fi
echo echo
echo "Copying Runtime DLLs..." if [ -z $APPVEYOR ]; then
mkdir -p $CONFIGURATION echo "Copying Runtime DLLs..."
for DLL in $RUNTIME_DLLS; do mkdir -p $CONFIGURATION
echo " `basename $DLL`." for DLL in $RUNTIME_DLLS; do
cp "$DLL" $CONFIGURATION/ echo " `basename $DLL`."
done cp "$DLL" $CONFIGURATION/
done
fi
exit $RET exit $RET

Loading…
Cancel
Save