-
Notifications
You must be signed in to change notification settings - Fork 245
/
build_config.bat
40 lines (32 loc) · 1.01 KB
/
build_config.bat
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
echo ************************************
echo *** Configuration ***
echo ************************************
echo *** Setting up environment ***
REM Currently tested combinations by Qt installation
REM 5.15.2 msvc2019
REM 6.7.3 msvc2019
if "%QTNO%"=="" (
set QTNO=6
)
if "%QTVER%"=="" (
if "%QTNO%"=="5" (
set QTVER=5.15.2
) else (
set QTVER=6.7.3
)
)
if "%MSVC_VER%"=="" (
set MSVC_VER=2019
)
if exist "C:\Program Files (x86)\Microsoft Visual Studio\%MSVC_VER%\Enterprise\VC\Auxiliary\Build" (
REM Visual Studio Community Edition 2019
if "%MSVC_DIR%"=="" set "MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio\%MSVC_VER%\Enterprise\VC\Auxiliary\Build"
) else (
REM Vidual Studio Professional 2019
if "%MSVC_DIR%"=="" set "MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build"
)
echo Set QT directory for %QTVER% and %MSVC_VER%
if "%QTDIR%"=="" (
set QTDIR=C:\Qt\%QTVER%\msvc%MSVC_VER%_64
)
set PATH=%QTDIR%\bin;%MSVC_DIR%;%PATH%