forked from mirror/openmw-tes3mp
Cleaning up AppVeyor scripts
This commit is contained in:
parent
197eb6c3a1
commit
27a4af26ab
2 changed files with 224 additions and 214 deletions
|
@ -124,6 +124,11 @@ add_runtime_dlls() {
|
||||||
RUNTIME_DLLS="$RUNTIME_DLLS $@"
|
RUNTIME_DLLS="$RUNTIME_DLLS $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OSG_PLUGINS=""
|
||||||
|
add_osg_dlls() {
|
||||||
|
OSG_PLUGINS="$OSG_PLUGINS $@"
|
||||||
|
}
|
||||||
|
|
||||||
if [ -z $PLATFORM ]; then
|
if [ -z $PLATFORM ]; then
|
||||||
PLATFORM=`uname -m`
|
PLATFORM=`uname -m`
|
||||||
fi
|
fi
|
||||||
|
@ -250,270 +255,274 @@ mkdir -p Build_$BITS/deps
|
||||||
cd Build_$BITS/deps
|
cd Build_$BITS/deps
|
||||||
|
|
||||||
DEPS_INSTALL=`pwd`
|
DEPS_INSTALL=`pwd`
|
||||||
|
cd $DEPS
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Extracting dependencies..."
|
echo "Extracting dependencies..."
|
||||||
|
|
||||||
|
|
||||||
# Boost
|
# Boost
|
||||||
if [ -z $APPVEYOR ]; then
|
printf "Boost 1.58.0... "
|
||||||
printf "Boost 1.58.0... "
|
{
|
||||||
cd $DEPS_INSTALL
|
if [ -z $APPVEYOR ]; then
|
||||||
|
cd $DEPS_INSTALL
|
||||||
|
|
||||||
BOOST_SDK="`real_pwd`/Boost"
|
BOOST_SDK="`real_pwd`/Boost"
|
||||||
|
|
||||||
if [ -d Boost ] && grep "BOOST_VERSION 105800" Boost/boost/version.hpp > /dev/null; then
|
if [ -d Boost ] && grep "BOOST_VERSION 105800" Boost/boost/version.hpp > /dev/null; then
|
||||||
printf "Exists. "
|
printf "Exists. "
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
rm -rf Boost
|
rm -rf Boost
|
||||||
$DEPS/boost-1.58.0-win$BITS.exe //dir="$(echo $BOOST_SDK | sed s,/,\\\\,g)" //verysilent
|
$DEPS/boost-1.58.0-win$BITS.exe //dir="$(echo $BOOST_SDK | sed s,/,\\\\,g)" //verysilent
|
||||||
|
fi
|
||||||
|
|
||||||
|
add_cmake_opts -DBOOST_ROOT="$BOOST_SDK" \
|
||||||
|
-DBOOST_LIBRARYDIR="$BOOST_SDK/lib$BITS-msvc-12.0"
|
||||||
|
|
||||||
|
echo Done.
|
||||||
|
else
|
||||||
|
# Appveyor unstable has all the boost we need already
|
||||||
|
BOOST_SDK="c:/Libraries/boost"
|
||||||
|
add_cmake_opts -DBOOST_ROOT="$BOOST_SDK" \
|
||||||
|
-DBOOST_LIBRARYDIR="$BOOST_SDK/lib$BITS-msvc-12.0"
|
||||||
|
|
||||||
|
echo AppVeyor.
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
add_cmake_opts -DBOOST_ROOT="$BOOST_SDK" \
|
cd $DEPS
|
||||||
-DBOOST_LIBRARYDIR="$BOOST_SDK/lib$BITS-msvc-12.0"
|
|
||||||
|
|
||||||
cd $DEPS
|
|
||||||
|
|
||||||
echo Done.
|
|
||||||
else
|
|
||||||
# Appveyor unstable has all the boost we need already
|
|
||||||
BOOST_SDK="c:/Libraries/boost"
|
|
||||||
add_cmake_opts -DBOOST_ROOT="$BOOST_SDK" \
|
|
||||||
-DBOOST_LIBRARYDIR="$BOOST_SDK/lib$BITS-msvc-12.0"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Bullet
|
# Bullet
|
||||||
printf "Bullet 2.83.5... "
|
printf "Bullet 2.83.5... "
|
||||||
cd $DEPS_INSTALL
|
{
|
||||||
|
cd $DEPS_INSTALL
|
||||||
|
|
||||||
if [ -d Bullet ]; then
|
if [ -d Bullet ]; then
|
||||||
printf "Exists. (No version checking) "
|
printf "Exists. (No version checking) "
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
rm -rf Bullet
|
rm -rf Bullet
|
||||||
eval 7z x -y $DEPS/Bullet-2.83.5-win$BITS.7z $STRIP
|
eval 7z x -y $DEPS/Bullet-2.83.5-win$BITS.7z $STRIP
|
||||||
mv Bullet-2.83.5-win$BITS Bullet
|
mv Bullet-2.83.5-win$BITS Bullet
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BULLET_SDK="`real_pwd`/Bullet"
|
BULLET_SDK="`real_pwd`/Bullet"
|
||||||
add_cmake_opts -DBULLET_INCLUDE_DIR="$BULLET_SDK/include/bullet" \
|
add_cmake_opts -DBULLET_INCLUDE_DIR="$BULLET_SDK/include/bullet" \
|
||||||
-DBULLET_COLLISION_LIBRARY="$BULLET_SDK/lib/BulletCollision.lib" \
|
-DBULLET_COLLISION_LIBRARY="$BULLET_SDK/lib/BulletCollision.lib" \
|
||||||
-DBULLET_COLLISION_LIBRARY_DEBUG="$BULLET_SDK/lib/BulletCollision_Debug.lib" \
|
-DBULLET_COLLISION_LIBRARY_DEBUG="$BULLET_SDK/lib/BulletCollision_Debug.lib" \
|
||||||
-DBULLET_DYNAMICS_LIBRARY="$BULLET_SDK/lib/BulletDynamics.lib" \
|
-DBULLET_MATH_LIBRARY="$BULLET_SDK/lib/LinearMath.lib" \
|
||||||
-DBULLET_DYNAMICS_LIBRARY_DEBUG="$BULLET_SDK/lib/BulletDynamics_Debug.lib" \
|
-DBULLET_MATH_LIBRARY_DEBUG="$BULLET_SDK/lib/LinearMath_Debug.lib"
|
||||||
-DBULLET_MATH_LIBRARY="$BULLET_SDK/lib/LinearMath.lib" \
|
|
||||||
-DBULLET_MATH_LIBRARY_DEBUG="$BULLET_SDK/lib/LinearMath_Debug.lib"
|
|
||||||
|
|
||||||
|
echo Done.
|
||||||
|
}
|
||||||
cd $DEPS
|
cd $DEPS
|
||||||
|
|
||||||
echo Done.
|
|
||||||
|
|
||||||
|
|
||||||
# FFmpeg
|
# FFmpeg
|
||||||
printf "FFmpeg 2.5.2... "
|
printf "FFmpeg 2.5.2... "
|
||||||
cd $DEPS_INSTALL
|
{
|
||||||
|
cd $DEPS_INSTALL
|
||||||
|
|
||||||
if [ -d FFmpeg ] && grep "FFmpeg version: 2.5.2" FFmpeg/README.txt > /dev/null; then
|
if [ -d FFmpeg ] && grep "FFmpeg version: 2.5.2" FFmpeg/README.txt > /dev/null; then
|
||||||
printf "Exists. "
|
printf "Exists. "
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
rm -rf FFmpeg
|
rm -rf FFmpeg
|
||||||
|
|
||||||
eval 7z x -y $DEPS/ffmpeg$BITS-2.5.2.7z $STRIP
|
eval 7z x -y $DEPS/ffmpeg$BITS-2.5.2.7z $STRIP
|
||||||
eval 7z x -y $DEPS/ffmpeg$BITS-2.5.2-dev.7z $STRIP
|
eval 7z x -y $DEPS/ffmpeg$BITS-2.5.2-dev.7z $STRIP
|
||||||
|
|
||||||
mv ffmpeg-2.5.2-win$BITS-shared FFmpeg
|
mv ffmpeg-2.5.2-win$BITS-shared FFmpeg
|
||||||
cp -r ffmpeg-2.5.2-win$BITS-dev/* FFmpeg/
|
cp -r ffmpeg-2.5.2-win$BITS-dev/* FFmpeg/
|
||||||
rm -rf ffmpeg-2.5.2-win$BITS-dev
|
rm -rf ffmpeg-2.5.2-win$BITS-dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FFMPEG_SDK="`real_pwd`/FFmpeg"
|
FFMPEG_SDK="`real_pwd`/FFmpeg"
|
||||||
add_cmake_opts -DAVCODEC_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
add_cmake_opts -DAVCODEC_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
||||||
-DAVCODEC_LIBRARIES="$FFMPEG_SDK/lib/avcodec.lib" \
|
-DAVCODEC_LIBRARIES="$FFMPEG_SDK/lib/avcodec.lib" \
|
||||||
-DAVDEVICE_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
-DAVDEVICE_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
||||||
-DAVDEVICE_LIBRARIES="$FFMPEG_SDK/lib/avdevice.lib" \
|
-DAVDEVICE_LIBRARIES="$FFMPEG_SDK/lib/avdevice.lib" \
|
||||||
-DAVFORMAT_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
-DAVFORMAT_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
||||||
-DAVFORMAT_LIBRARIES="$FFMPEG_SDK/lib/avformat.lib" \
|
-DAVFORMAT_LIBRARIES="$FFMPEG_SDK/lib/avformat.lib" \
|
||||||
-DAVUTIL_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
-DAVUTIL_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
||||||
-DAVUTIL_LIBRARIES="$FFMPEG_SDK/lib/avutil.lib" \
|
-DAVUTIL_LIBRARIES="$FFMPEG_SDK/lib/avutil.lib" \
|
||||||
-DPOSTPROC_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
-DPOSTPROC_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
||||||
-DPOSTPROC_LIBRARIES="$FFMPEG_SDK/lib/postproc.lib" \
|
-DPOSTPROC_LIBRARIES="$FFMPEG_SDK/lib/postproc.lib" \
|
||||||
-DSWRESAMPLE_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
-DSWRESAMPLE_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
||||||
-DSWRESAMPLE_LIBRARIES="$FFMPEG_SDK/lib/swresample.lib" \
|
-DSWRESAMPLE_LIBRARIES="$FFMPEG_SDK/lib/swresample.lib" \
|
||||||
-DSWSCALE_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
-DSWSCALE_INCLUDE_DIRS="$FFMPEG_SDK/include" \
|
||||||
-DSWSCALE_LIBRARIES="$FFMPEG_SDK/lib/swscale.lib"
|
-DSWSCALE_LIBRARIES="$FFMPEG_SDK/lib/swscale.lib"
|
||||||
|
|
||||||
add_runtime_dlls `pwd`/FFmpeg/bin/{avcodec-56,avformat-56,avutil-54,swresample-1,swscale-3}.dll
|
add_runtime_dlls `pwd`/FFmpeg/bin/{avcodec-56,avformat-56,avutil-54,swresample-1,swscale-3}.dll
|
||||||
|
|
||||||
if [ $BITS -eq 32 ]; then
|
if [ $BITS -eq 32 ]; then
|
||||||
add_cmake_opts "-DCMAKE_EXE_LINKER_FLAGS=\"/machine:X86 /safeseh:no\""
|
add_cmake_opts "-DCMAKE_EXE_LINKER_FLAGS=\"/machine:X86 /safeseh:no\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo Done.
|
||||||
|
}
|
||||||
cd $DEPS
|
cd $DEPS
|
||||||
|
|
||||||
echo Done.
|
|
||||||
|
|
||||||
|
|
||||||
# MyGUI
|
# MyGUI
|
||||||
printf "MyGUI 3.2.2... "
|
printf "MyGUI 3.2.2... "
|
||||||
cd $DEPS_INSTALL
|
{
|
||||||
|
cd $DEPS_INSTALL
|
||||||
|
|
||||||
if [ -d MyGUI ] && \
|
if [ -d MyGUI ] && \
|
||||||
grep "MYGUI_VERSION_MAJOR 3" MyGUI/include/MYGUI/MyGUI_Prerequest.h > /dev/null && \
|
grep "MYGUI_VERSION_MAJOR 3" MyGUI/include/MYGUI/MyGUI_Prerequest.h > /dev/null && \
|
||||||
grep "MYGUI_VERSION_MINOR 2" MyGUI/include/MYGUI/MyGUI_Prerequest.h > /dev/null && \
|
grep "MYGUI_VERSION_MINOR 2" MyGUI/include/MYGUI/MyGUI_Prerequest.h > /dev/null && \
|
||||||
grep "MYGUI_VERSION_PATCH 2" MyGUI/include/MYGUI/MyGUI_Prerequest.h > /dev/null
|
grep "MYGUI_VERSION_PATCH 2" MyGUI/include/MYGUI/MyGUI_Prerequest.h > /dev/null
|
||||||
then
|
then
|
||||||
printf "Exists. "
|
printf "Exists. "
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
rm -rf MyGUI
|
rm -rf MyGUI
|
||||||
eval 7z x -y $DEPS/MyGUI-3.2.2-win$BITS.7z $STRIP
|
eval 7z x -y $DEPS/MyGUI-3.2.2-win$BITS.7z $STRIP
|
||||||
mv MyGUI-3.2.2-win$BITS MyGUI
|
mv MyGUI-3.2.2-win$BITS MyGUI
|
||||||
fi
|
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/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
|
||||||
SUFFIX="_d"
|
SUFFIX="_d"
|
||||||
else
|
else
|
||||||
SUFFIX=""
|
SUFFIX=""
|
||||||
fi
|
fi
|
||||||
add_runtime_dlls `pwd`/MyGUI/bin/$CONFIGURATION/MyGUIEngine$SUFFIX.dll
|
add_runtime_dlls `pwd`/MyGUI/bin/$CONFIGURATION/MyGUIEngine$SUFFIX.dll
|
||||||
|
|
||||||
|
echo Done.
|
||||||
|
}
|
||||||
cd $DEPS
|
cd $DEPS
|
||||||
|
|
||||||
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
|
{
|
||||||
printf "Exists. "
|
if [ -d openal-soft-1.16.0-bin ]; then
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
printf "Exists. "
|
||||||
rm -rf openal-soft-1.16.0-bin
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
eval 7z x -y OpenAL-Soft-1.16.0.zip $STRIP
|
rm -rf openal-soft-1.16.0-bin
|
||||||
fi
|
eval 7z x -y OpenAL-Soft-1.16.0.zip $STRIP
|
||||||
|
fi
|
||||||
|
|
||||||
OPENAL_SDK="`real_pwd`/openal-soft-1.16.0-bin"
|
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.
|
||||||
|
}
|
||||||
|
cd $DEPS
|
||||||
|
|
||||||
# OSG
|
# OSG
|
||||||
printf "OSG 3.3.8... "
|
printf "OSG 3.3.8... "
|
||||||
cd $DEPS_INSTALL
|
{
|
||||||
|
cd $DEPS_INSTALL
|
||||||
|
|
||||||
if [ -d OSG ] && \
|
if [ -d OSG ] && \
|
||||||
grep "OPENSCENEGRAPH_MAJOR_VERSION 3" OSG/include/osg/Version > /dev/null && \
|
grep "OPENSCENEGRAPH_MAJOR_VERSION 3" OSG/include/osg/Version > /dev/null && \
|
||||||
grep "OPENSCENEGRAPH_MINOR_VERSION 3" OSG/include/osg/Version > /dev/null && \
|
grep "OPENSCENEGRAPH_MINOR_VERSION 3" OSG/include/osg/Version > /dev/null && \
|
||||||
grep "OPENSCENEGRAPH_PATCH_VERSION 8" OSG/include/osg/Version > /dev/null
|
grep "OPENSCENEGRAPH_PATCH_VERSION 8" OSG/include/osg/Version > /dev/null
|
||||||
then
|
then
|
||||||
printf "Exists. "
|
printf "Exists. "
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
rm -rf OSG
|
rm -rf OSG
|
||||||
eval 7z x -y $DEPS/OSG-3.3.8-win$BITS.7z $STRIP
|
eval 7z x -y $DEPS/OSG-3.3.8-win$BITS.7z $STRIP
|
||||||
mv OSG-3.3.8-win$BITS OSG
|
mv OSG-3.3.8-win$BITS OSG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OSG_SDK="`real_pwd`/OSG"
|
OSG_SDK="`real_pwd`/OSG"
|
||||||
|
|
||||||
add_cmake_opts -DOSG_DIR="$OSG_SDK"
|
add_cmake_opts -DOSG_DIR="$OSG_SDK"
|
||||||
|
|
||||||
if [ $CONFIGURATION == "Debug" ]; then
|
if [ $CONFIGURATION == "Debug" ]; then
|
||||||
SUFFIX="d"
|
SUFFIX="d"
|
||||||
else
|
else
|
||||||
SUFFIX=""
|
SUFFIX=""
|
||||||
fi
|
fi
|
||||||
add_runtime_dlls `pwd`/OSG/bin/{OpenThreads,zlib}$SUFFIX.dll \
|
|
||||||
`pwd`/OSG/bin/osg{,Animation,DB,FX,GA,Particle,Qt,Text,Util,Viewer}$SUFFIX.dll
|
|
||||||
|
|
||||||
OSG_PLUGINS=""
|
add_runtime_dlls `pwd`/OSG/bin/{OpenThreads,zlib}$SUFFIX.dll \
|
||||||
add_osg_dlls() {
|
`pwd`/OSG/bin/osg{,Animation,DB,FX,GA,Particle,Qt,Text,Util,Viewer}$SUFFIX.dll
|
||||||
OSG_PLUGINS="$OSG_PLUGINS $@"
|
|
||||||
|
add_osg_dlls `pwd`/OSG/bin/osgPlugins-3.3.8/osgdb_{bmp,dds,gif,jpeg,png,tga}$SUFFIX.dll
|
||||||
|
|
||||||
|
echo Done.
|
||||||
}
|
}
|
||||||
|
|
||||||
add_osg_dlls `pwd`/OSG/bin/osgPlugins-3.3.8/osgdb_{bmp,dds,gif,jpeg,png,tga}$SUFFIX.dll
|
|
||||||
|
|
||||||
cd $DEPS
|
cd $DEPS
|
||||||
|
|
||||||
echo Done.
|
|
||||||
|
|
||||||
|
|
||||||
# Qt
|
# Qt
|
||||||
if [ -z $APPVEYOR ]; then
|
if [ -z $APPVEYOR ]; then
|
||||||
printf "Qt 4.8.6... "
|
printf "Qt 4.8.6... "
|
||||||
cd $DEPS_INSTALL
|
|
||||||
|
|
||||||
if [ -d Qt ] && head -n2 Qt/BUILDINFO.txt | grep "4.8.6" > /dev/null; then
|
|
||||||
printf "Exists. "
|
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
|
||||||
rm -rf Qt
|
|
||||||
eval 7z x -y $DEPS/qt$BITS-4.8.6.7z $STRIP
|
|
||||||
mv qt-4.8.6-* Qt
|
|
||||||
fi
|
|
||||||
|
|
||||||
QT_SDK="`real_pwd`/Qt"
|
|
||||||
|
|
||||||
cd $QT_SDK
|
|
||||||
eval qtbinpatcher.exe $STRIP
|
|
||||||
|
|
||||||
add_cmake_opts -DDESIRED_QT_VERSION=4 \
|
|
||||||
-DQT_QMAKE_EXECUTABLE="$QT_SDK/bin/qmake.exe"
|
|
||||||
|
|
||||||
if [ $CONFIGURATION == "Debug" ]; then
|
|
||||||
SUFFIX="d4"
|
|
||||||
else
|
|
||||||
SUFFIX="4"
|
|
||||||
fi
|
|
||||||
add_runtime_dlls `pwd`/bin/Qt{Core,Gui,Network,OpenGL}$SUFFIX.dll
|
|
||||||
|
|
||||||
cd $DEPS
|
|
||||||
|
|
||||||
echo Done.
|
|
||||||
else
|
else
|
||||||
echo "Using Appveyor Qt 5 version."
|
printf "Qt 5.4... "
|
||||||
if [ $PLATFORM == "win32" ]; then
|
|
||||||
QT_SDK="C:/Qt/5.4/msvc2013_opengl"
|
|
||||||
else
|
|
||||||
QT_SDK="C:/Qt/5.4/msvc2013_64_opengl"
|
|
||||||
fi
|
|
||||||
|
|
||||||
add_cmake_opts -DDESIRED_QT_VERSION=5 \
|
|
||||||
-DQT_QMAKE_EXECUTABLE="$QT_SDK/bin/qmake.exe" \
|
|
||||||
-DCMAKE_PREFIX_PATH="$QT_SDK"
|
|
||||||
fi
|
fi
|
||||||
|
{
|
||||||
|
if [ -z $APPVEYOR ]; then
|
||||||
|
cd $DEPS_INSTALL
|
||||||
|
QT_SDK="`real_pwd`/Qt"
|
||||||
|
|
||||||
|
if [ -d Qt ] && head -n2 Qt/BUILDINFO.txt | grep "4.8.6" > /dev/null; then
|
||||||
|
printf "Exists. "
|
||||||
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
|
rm -rf Qt
|
||||||
|
eval 7z x -y $DEPS/qt$BITS-4.8.6.7z $STRIP
|
||||||
|
mv qt-4.8.6-* Qt
|
||||||
|
(
|
||||||
|
cd $QT_SDK
|
||||||
|
eval qtbinpatcher.exe $STRIP
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $QT_SDK
|
||||||
|
|
||||||
|
add_cmake_opts -DDESIRED_QT_VERSION=4 \
|
||||||
|
-DQT_QMAKE_EXECUTABLE="$QT_SDK/bin/qmake.exe"
|
||||||
|
|
||||||
|
if [ $CONFIGURATION == "Debug" ]; then
|
||||||
|
SUFFIX="d4"
|
||||||
|
else
|
||||||
|
SUFFIX="4"
|
||||||
|
fi
|
||||||
|
|
||||||
|
add_runtime_dlls `pwd`/bin/Qt{Core,Gui,Network,OpenGL}$SUFFIX.dll
|
||||||
|
|
||||||
|
echo Done.
|
||||||
|
else
|
||||||
|
if [ $BITS -eq 32 ]; then
|
||||||
|
QT_SDK="C:/Qt/5.4/msvc2013_opengl"
|
||||||
|
else
|
||||||
|
QT_SDK="C:/Qt/5.4/msvc2013_64_opengl"
|
||||||
|
fi
|
||||||
|
|
||||||
|
add_cmake_opts -DDESIRED_QT_VERSION=5 \
|
||||||
|
-DQT_QMAKE_EXECUTABLE="$QT_SDK/bin/qmake.exe" \
|
||||||
|
-DCMAKE_PREFIX_PATH="$QT_SDK"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
cd $DEPS
|
||||||
|
|
||||||
# SDL2
|
# SDL2
|
||||||
printf "SDL 2.0.3... "
|
printf "SDL 2.0.3... "
|
||||||
|
{
|
||||||
|
if [ -d SDL2-2.0.3 ]; then
|
||||||
|
printf "Exists. "
|
||||||
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
|
rm -rf SDL2-2.0.3
|
||||||
|
eval 7z x -y SDL2-2.0.3.zip $STRIP
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d SDL2-2.0.3 ]; then
|
SDL_SDK="`real_pwd`/SDL2-2.0.3"
|
||||||
printf "Exists. "
|
add_cmake_opts -DSDL2_INCLUDE_DIR="$SDL_SDK/include" \
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
-DSDL2MAIN_LIBRARY="$SDL_SDK/lib/x$ARCHSUFFIX/SDL2main.lib" \
|
||||||
rm -rf SDL2-2.0.3
|
-DSDL2_LIBRARY_PATH="$SDL_SDK/lib/x$ARCHSUFFIX/SDL2.lib"
|
||||||
eval 7z x -y SDL2-2.0.3.zip $STRIP
|
|
||||||
fi
|
|
||||||
|
|
||||||
SDL_SDK="`real_pwd`/SDL2-2.0.3"
|
add_runtime_dlls `pwd`/SDL2-2.0.3/lib/x$ARCHSUFFIX/SDL2.dll
|
||||||
add_cmake_opts -DSDL2_INCLUDE_DIR="$SDL_SDK/include" \
|
|
||||||
-DSDL2MAIN_LIBRARY="$SDL_SDK/lib/x$ARCHSUFFIX/SDL2main.lib" \
|
|
||||||
-DSDL2_LIBRARY_PATH="$SDL_SDK/lib/x$ARCHSUFFIX/SDL2.lib" \
|
|
||||||
-DSDL2_LIBRARY_ONLY="$SDL_SDK/lib/x$ARCHSUFFIX/SDL2.lib"
|
|
||||||
|
|
||||||
add_runtime_dlls `pwd`/SDL2-2.0.3/lib/x$ARCHSUFFIX/SDL2.dll
|
echo Done.
|
||||||
|
}
|
||||||
|
|
||||||
cd $DEPS
|
|
||||||
|
|
||||||
echo Done.
|
|
||||||
echo
|
|
||||||
|
|
||||||
cd $DEPS_INSTALL/..
|
cd $DEPS_INSTALL/..
|
||||||
|
|
||||||
|
echo
|
||||||
echo "Setting up OpenMW build..."
|
echo "Setting up OpenMW build..."
|
||||||
|
|
||||||
add_cmake_opts -DBUILD_BSATOOL=no \
|
add_cmake_opts -DBUILD_BSATOOL=no \
|
||||||
|
@ -521,8 +530,8 @@ add_cmake_opts -DBUILD_BSATOOL=no \
|
||||||
-DBUILD_MYGUI_PLUGIN=no \
|
-DBUILD_MYGUI_PLUGIN=no \
|
||||||
-DOPENMW_MP_BUILD=on
|
-DOPENMW_MP_BUILD=on
|
||||||
|
|
||||||
if [ -z $APPVEYOR ]; then
|
if [ -z $CI ]; then
|
||||||
echo " (Outside of AppVeyor, doing full build.)"
|
echo " (Outside of CI, doing full build.)"
|
||||||
else
|
else
|
||||||
case $STEP in
|
case $STEP in
|
||||||
components )
|
components )
|
||||||
|
@ -533,7 +542,6 @@ else
|
||||||
-DBUILD_OPENCS=no \
|
-DBUILD_OPENCS=no \
|
||||||
-DBUILD_OPENMW=no \
|
-DBUILD_OPENMW=no \
|
||||||
-DBUILD_WIZARD=no
|
-DBUILD_WIZARD=no
|
||||||
rm -rf components
|
|
||||||
;;
|
;;
|
||||||
openmw )
|
openmw )
|
||||||
echo " Subproject: OpenMW."
|
echo " Subproject: OpenMW."
|
||||||
|
@ -575,7 +583,8 @@ fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -z $APPVEYOR ]; then
|
# NOTE: Disable this when/if we want to run test cases
|
||||||
|
if [ -z $CI ]; then
|
||||||
echo "Copying Runtime DLLs..."
|
echo "Copying Runtime DLLs..."
|
||||||
mkdir -p $CONFIGURATION
|
mkdir -p $CONFIGURATION
|
||||||
for DLL in $RUNTIME_DLLS; do
|
for DLL in $RUNTIME_DLLS; do
|
||||||
|
|
31
appveyor.yml
31
appveyor.yml
|
@ -1,17 +1,22 @@
|
||||||
version: "{build}"
|
version: "{build}"
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- appveyor
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
- Win32
|
- Win32
|
||||||
- x64
|
- x64
|
||||||
|
|
||||||
configuration:
|
configuration: Debug
|
||||||
- Debug
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- STEP: openmw
|
- STEP: misc
|
||||||
- STEP: opencs
|
# - STEP: components # misc builds this too
|
||||||
- STEP: misc
|
# Build takes too long for these, ignore for now
|
||||||
|
# - STEP: openmw
|
||||||
|
# - STEP: opencs
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
@ -32,18 +37,14 @@ cache:
|
||||||
- C:\projects\openmw\deps\ffmpeg64-2.5.2.7z
|
- C:\projects\openmw\deps\ffmpeg64-2.5.2.7z
|
||||||
- C:\projects\openmw\deps\ffmpeg64-2.5.2-dev.7z
|
- C:\projects\openmw\deps\ffmpeg64-2.5.2-dev.7z
|
||||||
|
|
||||||
init:
|
|
||||||
- cmd: bash --version
|
|
||||||
- cmd: cmake --version
|
|
||||||
- cmd: msbuild /version
|
|
||||||
- cmd: echo.
|
|
||||||
|
|
||||||
clone_folder: C:\projects\openmw
|
clone_folder: C:\projects\openmw
|
||||||
|
|
||||||
build_script:
|
|
||||||
- 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
|
- cmd: sh %APPVEYOR_BUILD_FOLDER%\CI\before_script.msvc.sh
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- cmd: if %PLATFORM%==Win32 set build=Build_32
|
||||||
|
- cmd: if %PLATFORM%==x64 set build=Build_64
|
||||||
|
- cmd: msbuild %build%\OpenMW.sln /t:Build /p:Configuration=%configuration% /m:2 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
|
|
||||||
test: off
|
test: off
|
||||||
|
|
Loading…
Reference in a new issue