Salome HOME
qt: clean build directory
[tools/sat_salome.git] / products / compil_scripts / PyQt-5.9.bat
index ebd688fa0a33d331ade0a4fef3ef56b08ab0cde8..576f24c8c6d27b95eceed1d20ed7d15a6d4df2ee 100644 (file)
@@ -4,6 +4,10 @@ echo ##########################################################################
 echo PyQt %VERSION%
 echo ##########################################################################
 
+IF NOT DEFINED SAT_DEBUG (
+  SET SAT_DEBUG=0
+)
+
 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
 REM clean BUILD directory
 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
@@ -23,7 +27,12 @@ echo --------------------------------------------------------------------------
 echo *** python configure.py
 echo --------------------------------------------------------------------------
 
-python configure.py --confirm-license --no-designer-plugin --bindir=%PRODUCT_INSTALL%\bin --destdir=%PRODUCT_INSTALL%\lib\%python_name%\site-packages --sipdir=%PRODUCT_INSTALL%\sip --spec=win32-msvc --sip-incdir=%sip_incdir% --pyuic5-interpreter=%python_exe% --disable QtNfc --disable=QtNetwork --disable=QtWebSockets 2>&1
+set PRODUCT_BUILD_TYPE=
+if %SAT_DEBUG% == 1 (
+   python configure.py --confirm-license --no-designer-plugin --debug --bindir=%PRODUCT_INSTALL%\bin --destdir=%PRODUCT_INSTALL%\lib\%python_name%\site-packages --sipdir=%PRODUCT_INSTALL%\sip --spec=win32-msvc --sip-incdir=%sip_incdir% --pyuic5-interpreter=%python_exe% --disable QtNfc --disable=QtNetwork --disable=QtWebSockets 2>&1
+) else (
+   python configure.py --confirm-license --no-designer-plugin --bindir=%PRODUCT_INSTALL%\bin --destdir=%PRODUCT_INSTALL%\lib\%python_name%\site-packages --sipdir=%PRODUCT_INSTALL%\sip --spec=win32-msvc --sip-incdir=%sip_incdir% --pyuic5-interpreter=%python_exe% --disable QtNfc --disable=QtNetwork --disable=QtWebSockets 2>&1
+) 
 if NOT %ERRORLEVEL% == 0 (
     echo ERROR on python configure.py
     exit 1