Skip to content

Commit 9db502e

Browse files
committed
Fixed appveyor project
1 parent b7a5918 commit 9db502e

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

.appveyor.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ environment:
99
global:
1010
# Appveyor doesn't have Qt 12 yet
1111
LatestLTSQtVersion: 5.9
12-
LatestQtVersion 5.11
12+
LatestQtVersion: 5.11
1313
matrix:
1414
# Latest version of Qt, dll, 64bit, MSVC 2015, qmake
1515
- QT5: C:\Qt\%LatestQtVersion%\msvc2015_64
1616
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
17-
platform: amd64
17+
targetPlatform: amd64
1818
use_mingw: "false"
1919
use_static: "false"
2020
use_cmake: "false"
@@ -24,14 +24,14 @@ environment:
2424
# LTS version of Qt, dll, 32bit, MSVC 2015, qmake
2525
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015
2626
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
27-
platform: x86
27+
targetPlatform: x86
2828
use_mingw: "false"
2929
use_static: "false"
3030
use_cmake: "false"
3131
# LTS version of Qt, dll, 32bit, MSVC 2015, cmake
3232
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015
3333
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
34-
platform: x86
34+
targetPlatform: x86
3535
use_mingw: "false"
3636
use_static: "false"
3737
use_cmake: "true"
@@ -40,14 +40,14 @@ environment:
4040
# LTS version of Qt, static, 32bit, MSVC 2015, qmake
4141
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015
4242
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
43-
platform: x86
43+
targetPlatform: x86
4444
use_mingw: "false"
4545
use_static: "true"
4646
use_cmake: "false"
4747
# LTS version of Qt, static, 32bit, MSVC 2015, cmake
4848
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015
4949
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
50-
platform: x86
50+
targetPlatform: x86
5151
use_mingw: "false"
5252
use_static: "true"
5353
use_cmake: "true"
@@ -58,14 +58,14 @@ environment:
5858
# LTS version of Qt, dll, 32bit, MinGW, qmake
5959
- QT5: C:\Qt\%LatestLTSQtVersion%\mingw53_32
6060
COMPILER: C:\Qt\Tools\mingw530_32
61-
platform: x86
61+
targetPlatform: x86
6262
use_mingw: "true"
6363
use_static: "false"
6464
use_cmake: "false"
6565
# LTS version of Qt, dll, 32bit, MinGW, cmake
6666
- QT5: C:\Qt\%LatestLTSQtVersion%\mingw53_32
6767
COMPILER: C:\Qt\Tools\mingw530_32
68-
platform: x86
68+
targetPlatform: x86
6969
use_mingw: "true"
7070
use_static: "false"
7171
use_cmake: "true"
@@ -74,14 +74,14 @@ environment:
7474
# LTS version of Qt, static, 32bit, MinGW, qmake
7575
- QT5: C:\Qt\%LatestLTSQtVersion%\mingw53_32
7676
COMPILER: C:\Qt\Tools\mingw530_32
77-
platform: x86
77+
targetPlatform: x86
7878
use_mingw: "true"
7979
use_static: "true"
8080
use_cmake: "false"
8181
# LTS version of Qt, static, 32bit, MinGW, cmake
8282
- QT5: C:\Qt\%LatestLTSQtVersion%\mingw53_32
8383
COMPILER: C:\Qt\Tools\mingw530_32
84-
platform: x86
84+
targetPlatform: x86
8585
use_mingw: "true"
8686
use_static: "true"
8787
use_cmake: "true"
@@ -94,14 +94,14 @@ environment:
9494
# LTS version of Qt, dll, 64bit, MSVC 2015, qmake
9595
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015_64
9696
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
97-
platform: amd64
97+
targetPlatform: amd64
9898
use_mingw: "false"
9999
use_static: "false"
100100
use_cmake: "false"
101101
# LTS version of Qt, dll, 64bit, MSVC 2015, cmake
102102
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015_64
103103
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
104-
platform: amd64
104+
targetPlatform: amd64
105105
use_mingw: "false"
106106
use_static: "false"
107107
use_cmake: "true"
@@ -110,14 +110,14 @@ environment:
110110
# LTS version of Qt, static, 64bit, MSVC 2015, qmake
111111
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015_64
112112
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
113-
platform: amd64
113+
targetPlatform: amd64
114114
use_mingw: "false"
115115
use_static: "true"
116116
use_cmake: "false"
117117
# LTS version of Qt, static, 64bit, MSVC 2015, cmake
118118
- QT5: C:\Qt\%LatestLTSQtVersion%\msvc2015_64
119119
COMPILER: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
120-
platform: amd64
120+
targetPlatform: amd64
121121
use_mingw: "false"
122122
use_static: "true"
123123
use_cmake: "true"
@@ -130,8 +130,10 @@ matrix:
130130

131131
before_build:
132132
- set PATH=%COMPILER%\bin;%QT5%\bin;%PATH%
133+
- set originalWD=%CD%
133134
- call "%QT5%\bin\qtenv2.bat"
134-
- if not %use_mingw%==true call "%COMPILER%\vcvarsall.bat" %platform%
135+
- cd %originalWD%
136+
- if %use_mingw%==false call "%COMPILER%\vcvarsall.bat" %targetPlatform%
135137
- if %use_static%==true (set USESTATIC=ON) else (set USESTATIC=OFF)
136138
- if %use_mingw%==true (set CMAKEGENERATOR="MinGW Makefiles") else (set CMAKEGENERATOR="NMake Makefiles")
137139
- if %use_mingw%==true (set MAKEENGINE=mingw32-make) else (set MAKEENGINE=nmake)
@@ -147,8 +149,8 @@ build_script:
147149
- if %use_cmake%==true cmake -G %CMAKEGENERATOR% -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_EXAMPLES=ON -DBUILD_STATIC=%USESTATIC% -DCMAKE_INSTALL_PREFIX="./installed" ../
148150
- if %use_cmake%==true cmake --build .
149151
- if %use_cmake%==true cmake --build . --target install
150-
- if %use_cmake%==false %use_static%==true qmake "CONFIG+=adsBuildStatic"
151-
- if %use_cmake%==false %use_static%==false qmake
152+
- if %use_cmake%==false if %use_static%==true qmake "CONFIG+=adsBuildStatic"
153+
- if %use_cmake%==false if %use_static%==false qmake
152154
- if %use_cmake%==false %MAKEENGINE% debug
153155
- if %use_cmake%==false %MAKEENGINE% release
154156
- if %use_cmake%==false %MAKEENGINE% install

0 commit comments

Comments
 (0)