Merge remote-tracking branch 'upstream/appveyor' into appveyor-osg

coverity_scan
Alexander "Ace" Olofsson 10 years ago
commit 24593d70ad

@ -51,12 +51,10 @@ run_cmd() {
if [ $RET -ne 0 ]; then if [ $RET -ne 0 ]; then
if [ -z $APPVEYOR ]; then if [ -z $APPVEYOR ]; then
echo "Command $CMD failed, output can be found in `real_pwd`/output.log" echo "Command $CMD failed, output can be found in `real_pwd`/output.log"
exit $RET
else else
7z a output.7z output.log > /dev/null 2>&1 echo
echo "Command $CMD failed;"
appveyor PushArtifact output.7z -FileName $CMD-output.7z cat output.log
appveyor AddMessage "Command $CMD failed (code $RET), output has been pushed as an artifact." -Category Error
fi fi
else else
rm output.log rm output.log
@ -254,6 +252,7 @@ DEPS_INSTALL=`pwd`
echo echo
echo "Extracting dependencies..." echo "Extracting dependencies..."
# Boost # Boost
if [ -z $APPVEYOR ]; then if [ -z $APPVEYOR ]; then
printf "Boost 1.58.0... " printf "Boost 1.58.0... "
@ -281,6 +280,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 +306,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 +350,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
@ -368,7 +370,8 @@ fi
MYGUI_SDK="`real_pwd`/MyGUI" MYGUI_SDK="`real_pwd`/MyGUI"
add_cmake_opts -DMYGUISDK="$MYGUI_SDK" \ add_cmake_opts -DMYGUISDK="$MYGUI_SDK" \
-DMYGUI_INCLUDE_DIRS="$MYGUI_SDK/include/MYGUI" \ -DMYGUI_INCLUDE_DIRS="$MYGUI_SDK/include" \
-DMYGUI_PLATFORM_INCLUDE_DIRS="$MYGUI_SDK/include/MYGUI" \
-DMYGUI_PREQUEST_FILE="$MYGUI_SDK/include/MYGUI/MyGUI_Prerequest.h" -DMYGUI_PREQUEST_FILE="$MYGUI_SDK/include/MYGUI/MyGUI_Prerequest.h"
if [ $CONFIGURATION == "Debug" ]; then if [ $CONFIGURATION == "Debug" ]; then
@ -382,6 +385,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
@ -396,10 +400,9 @@ 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.
# OSG # OSG
printf "OSG 3.3.8... " printf "OSG 3.3.8... "
cd $DEPS_INSTALL cd $DEPS_INSTALL
@ -439,35 +442,50 @@ cd $DEPS
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 -DDESIRED_QT_VERSION=4 \
-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=5 \
-DQT_QMAKE_EXECUTABLE="$QT_SDK/bin/qmake.exe"
fi
echo Done.
# SDL2 # SDL2
printf "SDL 2.0.3... " printf "SDL 2.0.3... "
@ -539,6 +557,44 @@ else
esac esac
fi fi
if [ -z $APPVEYOR ]; then
echo " (Outside of AppVeyor, doing full build.)"
else
case $STEP in
components )
echo " Subproject: Components."
add_cmake_opts -DBUILD_ESSIMPORTER=no \
-DBUILD_LAUNCHER=no \
-DBUILD_MWINIIMPORTER=no \
-DBUILD_OPENCS=no \
-DBUILD_OPENMW=no \
-DBUILD_WIZARD=no
rm -rf components
;;
openmw )
echo " Subproject: OpenMW."
add_cmake_opts -DBUILD_ESSIMPORTER=no \
-DBUILD_LAUNCHER=no \
-DBUILD_MWINIIMPORTER=no \
-DBUILD_OPENCS=no \
-DBUILD_WIZARD=no
;;
opencs )
echo " Subproject: OpenCS."
add_cmake_opts -DBUILD_ESSIMPORTER=no \
-DBUILD_LAUNCHER=no \
-DBUILD_MWINIIMPORTER=no \
-DBUILD_OPENMW=no \
-DBUILD_WIZARD=no
;;
misc )
echo " Subproject: Misc."
add_cmake_opts -DBUILD_OPENCS=no \
-DBUILD_OPENMW=no
;;
esac
fi
if [ -z $VERBOSE ]; then if [ -z $VERBOSE ]; then
printf " Configuring... " printf " Configuring... "
else else
@ -555,18 +611,20 @@ 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/
echo "OSG Plugin DLLs..." done
mkdir -p $CONFIGURATION/osgPlugins-3.3.8 echo "OSG Plugin DLLs..."
for DLL in $OSG_PLUGINS; do mkdir -p $CONFIGURATION/osgPlugins-3.3.8
echo " `basename $DLL`." for DLL in $OSG_PLUGINS; do
cp "$DLL" $CONFIGURATION/osgPlugins-3.3.8 echo " `basename $DLL`."
done cp "$DLL" $CONFIGURATION/osgPlugins-3.3.8
echo done
echo
fi
exit $RET exit $RET

@ -27,6 +27,10 @@ cache:
- C:\projects\openmw\deps\MyGUI-3.2.2-win64.7z - C:\projects\openmw\deps\MyGUI-3.2.2-win64.7z
- C:\projects\openmw\deps\OSG-3.3.8-win32.7z - C:\projects\openmw\deps\OSG-3.3.8-win32.7z
- C:\projects\openmw\deps\OSG-3.3.8-win64.7z - C:\projects\openmw\deps\OSG-3.3.8-win64.7z
- C:\projects\openmw\deps\ffmpeg32-2.5.2.7z
- C:\projects\openmw\deps\ffmpeg32-2.5.2-dev.7z
- C:\projects\openmw\deps\ffmpeg64-2.5.2.7z
- C:\projects\openmw\deps\ffmpeg64-2.5.2-dev.7z
init: init:
- cmd: bash --version - cmd: bash --version
@ -40,6 +44,6 @@ build_script:
- cmd: bash --login C:\projects\openmw\CI\build.msvc.sh - cmd: bash --login C:\projects\openmw\CI\build.msvc.sh
before_build: before_build:
- cmd: bash --login C:\projects\openmw\CI\before_script.msvc.sh -k - cmd: bash --login C:\projects\openmw\CI\before_script.msvc.sh
test: off test: off

Loading…
Cancel
Save