forked from COVESA/dlt-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_config.bat
45 lines (37 loc) · 1.21 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
41
42
43
44
45
echo ************************************
echo *** Configuration ***
echo ************************************
echo *** Setting up environment ***
REM Currently supported combinations by Qt installation
REM 5.12.12 msvc2015,msvc2017
REM 5.15.2 msvc2015,msvc2019
REM 6.2.2 msvc2019
if "%QTVER%"=="" (
set QTVER=5.12.12
REM set QTVER=5.15.2
REM set QTVER=6.2.2
)
if "%MSVC_VER%"=="" (
REM set MSVC_VER=2015
REM set MSVC_VER=2017
set MSVC_VER=2019
)
if "%MSVC_VER%"=="2015" (
if "%MSVC_DIR%"=="" set "MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"
) else (
if exist "C:\Program Files (x86)\Microsoft Visual Studio\%MSVC_VER%\Enterprise\VC\Auxiliary\Build" (
if "%MSVC_DIR%"=="" set "MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio\%MSVC_VER%\Enterprise\VC\Auxiliary\Build"
) else (
if "%MSVC_DIR%"=="" set "MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio\%MSVC_VER%\BuildTools\VC\Auxiliary\Build"
)
)
echo Set QT directory for %QTVER% and %MSVC_VER%
if "%QTDIR%"=="" (
set QTDIR=C:\Qt\%QTVER%\msvc%MSVC_VER%_64
)
if "%QWT%"=="" (
set QWT=6.1.4
REM set QWT=6.1.6
REM set QWT=6.2.0
)
set PATH=%QTDIR%\bin;%MSVC_DIR%;%PATH%