3 echo ##########################################################################
5 echo ##########################################################################
7 IF NOT DEFINED SAT_DEBUG (
11 SET PRODUCT_BUILD_TYPE=-release
13 set PRODUCT_BUILD_TYPE=-debug-and-release
16 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
17 REM clean BUILD directory
18 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
25 echo --------------------------------------------------------------------------
27 echo --------------------------------------------------------------------------
29 set QT_OPTIONS=-platform win32-msvc2017
30 set QT_OPTIONS=%QT_OPTIONS% -opensource -confirm-license %PRODUCT_BUILD_TYPE%
31 set QT_OPTIONS=%QT_OPTIONS% -no-angle -opengl desktop -nomake examples -nomake tests
32 set QT_OPTIONS=%QT_OPTIONS% -skip qtwebengine -skip wayland -skip qtgamepad -no-openssl
33 set QT_OPTIONS=%QT_OPTIONS% -prefix %PRODUCT_INSTALL%
34 echo **** call configure %QT_OPTIONS%
35 call configure %QT_OPTIONS%
36 if NOT %ERRORLEVEL% == 0 (
37 echo "ERROR on configure"
41 REM Compilation with nmake as said in qt documentation
42 REM nmake can crash because of multi-threading problems
43 REM Thus, we will try to run it 42 times until it works
44 set /a remaining_tries = 42
46 echo *** Trying to run nmake %remaining_tries% more time.
47 set /a remaining_tries = remaining_tries - 1
49 if NOT %ERRORLEVEL% == 0 if %remaining_tries% gtr 0 (
52 if %remaining_tries% == 0 (
59 echo --------------------------------------------------------------------------
60 echo *** nmake install
61 echo --------------------------------------------------------------------------
64 if NOT %ERRORLEVEL% == 0 (
65 echo "ERROR on nmake install"
69 echo "*** Adding qt.conf file in order to be able to compile using the moved Qt installation"
70 echo [Paths] > %PRODUCT_INSTALL%\bin\qt.conf
71 echo Prefix=../ >> %PRODUCT_INSTALL%\bin\qt.conf