forked from mirror/openmw-tes3mp
Merge pull request #1714 from ananace/patch-9
Switch Appveyor CI to x64 VS2015 / 2017
This commit is contained in:
commit
5775f420e2
2 changed files with 26 additions and 18 deletions
|
@ -216,6 +216,8 @@ case $VS_VERSION in
|
||||||
15|15.0|2017 )
|
15|15.0|2017 )
|
||||||
GENERATOR="Visual Studio 15 2017"
|
GENERATOR="Visual Studio 15 2017"
|
||||||
TOOLSET="vc140"
|
TOOLSET="vc140"
|
||||||
|
TOOLSET_REAL="vc141"
|
||||||
|
MSVC_REAL_VER="15"
|
||||||
MSVC_VER="14"
|
MSVC_VER="14"
|
||||||
MSVC_YEAR="2015"
|
MSVC_YEAR="2015"
|
||||||
MSVC_DISPLAY_YEAR="2017"
|
MSVC_DISPLAY_YEAR="2017"
|
||||||
|
@ -224,6 +226,8 @@ case $VS_VERSION in
|
||||||
14|14.0|2015 )
|
14|14.0|2015 )
|
||||||
GENERATOR="Visual Studio 14 2015"
|
GENERATOR="Visual Studio 14 2015"
|
||||||
TOOLSET="vc140"
|
TOOLSET="vc140"
|
||||||
|
TOOLSET_REAL="vc140"
|
||||||
|
MSVC_REAL_VER="14"
|
||||||
MSVC_VER="14"
|
MSVC_VER="14"
|
||||||
MSVC_YEAR="2015"
|
MSVC_YEAR="2015"
|
||||||
MSVC_DISPLAY_YEAR="2015"
|
MSVC_DISPLAY_YEAR="2015"
|
||||||
|
@ -232,6 +236,8 @@ case $VS_VERSION in
|
||||||
12|12.0|2013 )
|
12|12.0|2013 )
|
||||||
GENERATOR="Visual Studio 12 2013"
|
GENERATOR="Visual Studio 12 2013"
|
||||||
TOOLSET="vc120"
|
TOOLSET="vc120"
|
||||||
|
TOOLSET_REAL="vc120"
|
||||||
|
MSVC_REAL_VER="12"
|
||||||
MSVC_VER="12"
|
MSVC_VER="12"
|
||||||
MSVC_YEAR="2013"
|
MSVC_YEAR="2013"
|
||||||
MSVC_DISPLAY_YEAR="2013"
|
MSVC_DISPLAY_YEAR="2013"
|
||||||
|
@ -385,7 +391,7 @@ else
|
||||||
if [ $MSVC_VER -eq 12 ]; then
|
if [ $MSVC_VER -eq 12 ]; then
|
||||||
printf "Boost 1.58.0 AppVeyor... "
|
printf "Boost 1.58.0 AppVeyor... "
|
||||||
else
|
else
|
||||||
printf "Boost 1.60.0 AppVeyor... "
|
printf "Boost 1.67.0 AppVeyor... "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
{
|
{
|
||||||
|
@ -408,14 +414,20 @@ fi
|
||||||
echo Done.
|
echo Done.
|
||||||
else
|
else
|
||||||
# Appveyor unstable has all the boost we need already
|
# Appveyor unstable has all the boost we need already
|
||||||
if [ $MSVC_VER -eq 12 ]; then
|
if [ $MSVC_REAL_VER -eq 12 ]; then
|
||||||
BOOST_SDK="c:/Libraries/boost_1_58_0"
|
BOOST_SDK="c:/Libraries/boost_1_58_0"
|
||||||
else
|
else
|
||||||
BOOST_SDK="c:/Libraries/boost_1_60_0"
|
BOOST_SDK="c:/Libraries/boost_1_67_0"
|
||||||
fi
|
fi
|
||||||
|
if [ $MSVC_REAL_VER -eq 15 ]; then
|
||||||
|
LIB_SUFFIX="1"
|
||||||
|
else
|
||||||
|
LIB_SUFFIX="0"
|
||||||
|
fi
|
||||||
|
|
||||||
add_cmake_opts -DBOOST_ROOT="$BOOST_SDK" \
|
add_cmake_opts -DBOOST_ROOT="$BOOST_SDK" \
|
||||||
-DBOOST_LIBRARYDIR="${BOOST_SDK}/lib${BITS}-msvc-${MSVC_VER}.0"
|
-DBOOST_LIBRARYDIR="${BOOST_SDK}/lib${BITS}-msvc-${MSVC_VER}.${LIB_SUFFIX}"
|
||||||
add_cmake_opts -DBoost_COMPILER="-${TOOLSET}"
|
add_cmake_opts -DBoost_COMPILER="-${TOOLSET_REAL}"
|
||||||
|
|
||||||
echo Done.
|
echo Done.
|
||||||
fi
|
fi
|
||||||
|
@ -568,7 +580,7 @@ echo
|
||||||
if [ -z $APPVEYOR ]; then
|
if [ -z $APPVEYOR ]; then
|
||||||
printf "Qt 5.7.0... "
|
printf "Qt 5.7.0... "
|
||||||
else
|
else
|
||||||
printf "Qt 5.7 AppVeyor... "
|
printf "Qt 5.10 AppVeyor... "
|
||||||
fi
|
fi
|
||||||
{
|
{
|
||||||
if [ $BITS -eq 64 ]; then
|
if [ $BITS -eq 64 ]; then
|
||||||
|
@ -618,7 +630,7 @@ fi
|
||||||
|
|
||||||
echo Done.
|
echo Done.
|
||||||
else
|
else
|
||||||
QT_SDK="C:/Qt/5.7/msvc${MSVC_YEAR}${SUFFIX}"
|
QT_SDK="C:/Qt/5.10/msvc${MSVC_DISPLAY_YEAR}${SUFFIX}"
|
||||||
|
|
||||||
add_cmake_opts -DDESIRED_QT_VERSION=5 \
|
add_cmake_opts -DDESIRED_QT_VERSION=5 \
|
||||||
-DQT_QMAKE_EXECUTABLE="${QT_SDK}/bin/qmake.exe" \
|
-DQT_QMAKE_EXECUTABLE="${QT_SDK}/bin/qmake.exe" \
|
||||||
|
|
18
appveyor.yml
18
appveyor.yml
|
@ -8,35 +8,31 @@ branches:
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- msvc: 2013
|
|
||||||
- msvc: 2015
|
- msvc: 2015
|
||||||
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
- msvc: 2017
|
||||||
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
- Win32
|
# - Win32
|
||||||
# - x64
|
- x64
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
- Debug
|
- Debug
|
||||||
# - Release
|
# - Release
|
||||||
|
|
||||||
# For the Qt, Boost, CMake, etc installs
|
# For the Qt, Boost, CMake, etc installs
|
||||||
os: Visual Studio 2015
|
#os: Visual Studio 2017
|
||||||
|
|
||||||
# We want the git revision for versioning,
|
# We want the git revision for versioning,
|
||||||
# so shallow clones don't work.
|
# so shallow clones don't work.
|
||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- C:\projects\openmw\deps\Bullet-2.83.7-msvc2013-win32.7z
|
|
||||||
- C:\projects\openmw\deps\Bullet-2.83.7-msvc2013-win64.7z
|
|
||||||
- C:\projects\openmw\deps\Bullet-2.83.7-msvc2015-win32.7z
|
- C:\projects\openmw\deps\Bullet-2.83.7-msvc2015-win32.7z
|
||||||
- C:\projects\openmw\deps\Bullet-2.83.7-msvc2015-win64.7z
|
- C:\projects\openmw\deps\Bullet-2.83.7-msvc2015-win64.7z
|
||||||
- C:\projects\openmw\deps\MyGUI-3.2.3-git-msvc2013-win32.7z
|
|
||||||
- C:\projects\openmw\deps\MyGUI-3.2.3-git-msvc2013-win32.7z
|
|
||||||
- C:\projects\openmw\deps\MyGUI-3.2.3-git-msvc2015-win64.7z
|
- C:\projects\openmw\deps\MyGUI-3.2.3-git-msvc2015-win64.7z
|
||||||
- C:\projects\openmw\deps\MyGUI-3.2.3-git-msvc2015-win64.7z
|
- C:\projects\openmw\deps\MyGUI-3.2.3-git-msvc2015-win64.7z
|
||||||
- C:\projects\openmw\deps\OSG-3.4.0-scrawl-msvc2013-win32.7z
|
|
||||||
- C:\projects\openmw\deps\OSG-3.4.0-scrawl-msvc2013-win32.7z
|
|
||||||
- C:\projects\openmw\deps\OSG-3.4.0-scrawl-msvc2015-win64.7z
|
- C:\projects\openmw\deps\OSG-3.4.0-scrawl-msvc2015-win64.7z
|
||||||
- C:\projects\openmw\deps\OSG-3.4.0-scrawl-msvc2015-win64.7z
|
- C:\projects\openmw\deps\OSG-3.4.0-scrawl-msvc2015-win64.7z
|
||||||
- C:\projects\openmw\deps\ffmpeg-3.0.1-dev-win32.7z
|
- C:\projects\openmw\deps\ffmpeg-3.0.1-dev-win32.7z
|
||||||
|
@ -52,7 +48,7 @@ install:
|
||||||
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
|
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- cmd: sh %APPVEYOR_BUILD_FOLDER%\CI\before_script.msvc.sh -u -p %PLATFORM% -v %msvc%
|
- cmd: sh %APPVEYOR_BUILD_FOLDER%\CI\before_script.msvc.sh -u -p %PLATFORM% -v %msvc% -V
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- cmd: if %PLATFORM%==Win32 set build=MSVC%msvc%_32
|
- cmd: if %PLATFORM%==Win32 set build=MSVC%msvc%_32
|
||||||
|
|
Loading…
Reference in a new issue