forked from fpoussin/Qt5-MSVC-Static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_qt.bat
39 lines (31 loc) · 1015 Bytes
/
setup_qt.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
@echo off
setlocal
IF exist %SSLINSTALLDIR% (
echo Found OpenSSL
) ELSE (
echo Could not find OpenSSL in %SSLINSTALLDIR%
echo use "qt.bat openssl" to install it.
exit /b 1
)
IF exist %QTDIR% (
cd %QTDIR%
) ELSE (
echo Could not find Qt sources in %QTDIR%
exit /b 1
)
IF exist %QTBUILDDIR% (
echo Cleaning old Qt build dir
rd /s /q %QTBUILDDIR%
)
md %QTBUILDDIR%
cd %QTBUILDDIR% || exit /b %errorlevel%
echo Configuring Qt...
start /W /BELOWNORMAL "Configuring Qt..." %QTDIR%\configure.bat -prefix %QTINSTALLDIR% -platform %PLATFORM% ^
-opensource -release -confirm-license -opengl dynamic -mp -static -static-runtime -no-shared ^
-qt-libpng -qt-libjpeg -qt-zlib -qt-pcre -no-compile-examples -nomake examples ^
-no-icu -optimize-size %EXTRABUILDOPTIONS% ^
-openssl-linked OPENSSL_PREFIX=%SSLINSTALLDIR% ^&^& exit
IF %errorlevel% NEQ 0 exit /b %errorlevel%
echo Configuration complete
echo Will install to %QTINSTALLDIR%
endlocal