3 echo ##########################################################################
5 echo ##########################################################################
7 IF NOT DEFINED SAT_DEBUG (
11 SET PRODUCT_BUILD_TYPE=-release
12 REM TODO: NGH: not Tested yet
13 REM if %SAT_DEBUG% == 1 (
14 REM set PRODUCT_BUILD_TYPE=-debug
17 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
18 REM clean BUILD directory
19 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
26 echo --------------------------------------------------------------------------
28 echo --------------------------------------------------------------------------
30 set QT_OPTIONS=-platform win32-msvc2017
31 set QT_OPTIONS=%QT_OPTIONS% -opensource -confirm-license %PRODUCT_BUILD_TYPE%
32 set QT_OPTIONS=%QT_OPTIONS% -no-angle -opengl desktop -nomake examples -nomake tests
33 set QT_OPTIONS=%QT_OPTIONS% -skip qtwebengine -skip wayland -skip qtgamepad -no-openssl
34 set QT_OPTIONS=%QT_OPTIONS% -prefix %PRODUCT_INSTALL%
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