forked from fpoussin/Qt5-MSVC-Static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_qt_extras.bat
41 lines (29 loc) · 1.1 KB
/
build_qt_extras.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
@echo off
setlocal EnableDelayedExpansion
set EXTPATH=%SRCDIR%\%EXTNAME%-everywhere-src-%QTVER%
set QMAKE=%QTINSTALLDIR%\bin\qmake.exe
IF NOT "%EXTNAME%" == "" (
echo PATH: %EXTPATH%
echo QMAKE: %QMAKE%
set URL=http://download.qt.io/%QTRELEASE%_releases/qt/%QTVER:~0,-2%/%QTVER%/submodules/%EXTNAME%-everywhere-src-%QTVER%.zip
cd %SRCDIR%
echo Downloading !URL!
curl %CURLOPTS% !URL!
rd %EXTPATH% /s /q
7z %ZOPTS% %EXTNAME%-everywhere-src-%QTVER%.zip || exit /b %errorlevel%
cd ..
cd %EXTPATH% || exit /b %errorlevel%
echo Configuring %EXTNAME%...
start /W "Configuring %EXTNAME%" %QMAKE% || exit /b %errorlevel%
IF %errorlevel% NEQ 0 exit /b %errorlevel%
echo Building %EXTNAME%...
start /W /BELOWNORMAL "Building %EXTNAME%..." jom clean all
IF %errorlevel% NEQ 0 exit /b %errorlevel%
echo Installing %EXTNAME%...
start /W /BELOWNORMAL "Installing %EXTNAME%..." jom install
IF %errorlevel% NEQ 0 exit /b %errorlevel%
echo %EXTNAME% installed
) ELSE (
echo Missing extension name!
)
endlocal