forked from treefrogframework/treefrog-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
46 lines (37 loc) · 1.12 KB
/
build.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
46
@ECHO OFF
@setlocal
rem
rem Edit this line to run the batch file for Qt environment.
rem
set BASEDIR=%~dp0
call "C:\Qt\5.13.2\msvc2017_64\bin\qtenv2.bat"
rem call "C:\Qt\5.13.0\msvc2017\bin\qtenv2.bat"
rem call "C:\Qt\5.13.0\msvc2015_64\bin\qtenv2.bat"
rem call "C:\Qt\5.12.4\msvc2017_64\bin\qtenv2.bat"
rem call "C:\Qt\5.12.4\msvc2017\bin\qtenv2.bat"
rem call "C:\Qt\5.12.4\msvc2015_64\bin\qtenv2.bat"
set VSVER=2017
set ARCH=amd64
set VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
set VCVARSBAT=""
if exist %VSWHERE% (
for /f "usebackq tokens=*" %%i in (`%VSWHERE% -find **\vcvarsall.bat`) do (
echo %%i | find "%VSVER%" >NUL
if not ERRORLEVEL 1 (
set VCVARSBAT="%%i"
goto :break
)
)
)
:break
if exist %VCVARSBAT% (
echo %VCVARSBAT% %ARCH%
call %VCVARSBAT% %ARCH%
) else (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
rem call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %ARCH%
)
cd /D %BASEDIR%
call compile_install.bat
pause
exit /b