-
Notifications
You must be signed in to change notification settings - Fork 7
/
.appveyor.yml
47 lines (40 loc) · 1.73 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
clone_folder: C:\projects\bkbtl-qt
shallow_clone: true
# See https://www.appveyor.com/docs/windows-images-software/#qt
environment:
matrix:
- QTDIR: C:\Qt\5.13\mingw73_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- QTDIR: C:\Qt\5.13\mingw73_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- QTDIR: C:\Qt\5.13\msvc2015_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- QTDIR: C:\Qt\5.15\msvc2019
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- QTDIR: C:\Qt\5.15\msvc2019_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
configuration:
- debug
- release
init:
- git config --global core.autocrlf input
install:
# Setup the build toolchains
- '%QTDIR%\bin\qtenv2.bat'
- qmake -v
- if %QTDIR:_64=%==%QTDIR% ( set ARCH=x86 ) else set ARCH=x64
- if %QTDIR:msvc=%==%QTDIR% g++ --version
- if %QTDIR:msvc=%==%QTDIR% set make=mingw32-make.exe
- if %QTDIR:msvc=%==%QTDIR% %make% --version
- if not %QTDIR:msvc2015=%==%QTDIR% call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %ARCH%
- if not %QTDIR:msvc2017=%==%QTDIR% call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
- if not %QTDIR:msvc2019=%==%QTDIR% call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
- if not %QTDIR:msvc=%==%QTDIR% set make=nmake.exe
- if not %QTDIR:msvc=%==%QTDIR% %make% /? > nul
before_build:
# Prepare the out-of-source build directory
- mkdir %APPVEYOR_BUILD_FOLDER%-build
- qmake -o %APPVEYOR_BUILD_FOLDER%-build -r -Wall -Wlogic -Wparser CONFIG+=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%/emulator
build_script:
- cd %APPVEYOR_BUILD_FOLDER%-build
- '%make%'