Use VS 2019 in CI

This commit is contained in:
Victor Tran 2020-08-03 23:39:23 +10:00
parent f83fb8f41e
commit c7fe58324f
3 changed files with 17 additions and 14 deletions

View file

@ -3,7 +3,7 @@ branches:
only:
- blueprint
skip_tags: true
image: Visual Studio 2017
image: Visual Studio 2019
environment:
REPO_SLUG: vicr123/the-libs

View file

@ -1,10 +1,13 @@
if "%APPVEYOR_REPO_TAG_NAME%"=="continuous" (
exit 1
)
set QTDIR=C:\Qt\5.11\msvc2017_64
set PATH=%PATH%;%QTDIR%\bin
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
qmake the-libs.pro
nmake release
nmake install
if "%APPVEYOR_REPO_TAG_NAME%"=="continuous" (
exit 1
)
set QTDIR=C:\Qt\5.15\msvc2019_64
set PATH=%PATH%;%QTDIR%\bin
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
qmake the-libs.pro
nmake release
nmake install

View file

@ -10,7 +10,7 @@ TARGET = the-libs
TEMPLATE = lib
unix:!android {
CONFIG += c++14
CONFIG += c++14
system("pkg-config --version") {
CONFIG += link_pkgconfig
packagesExist(libunwind) {
@ -41,12 +41,12 @@ unix:!android {
}
macx {
CONFIG += c++14
CONFIG += c++14
LIBS += -framework CoreFoundation -framework Cocoa
}
win32 {
CONFIG += c++17
CONFIG += c++17
LIBS += -lUser32 -lKernel32 -lDbgHelp -lwindowsapp
DEFINES += _WIN32_WINNT=0x0601 # Windows 7 or up
}