3 echo ##########################################################################
5 echo ##########################################################################
7 IF NOT DEFINED SAT_DEBUG (
11 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
13 if exist "%BUILD_DIR%" rmdir /Q /S "%BUILD_DIR%"
17 xcopy * %BUILD_DIR% /E /I /Q
18 if NOT %ERRORLEVEL% == 0 (
25 echo --------------------------------------------------------------------------
26 echo *** prepare qmake
27 echo --------------------------------------------------------------------------
30 rem # Remplacement des antislashs par des slashs
31 set str=%PRODUCT_INSTALL%
35 attrib -R qwtconfig.pri
36 sed "s|\(QWT_INSTALL_PREFIX[[:space:]]*\)=\([[:space:]]*\)\(.*\)|\1=\2%str%|g" < qwtconfig.pri > %tmpfile%
37 move /y %tmpfile% qwtconfig.pri
41 attrib -R designer.pro
42 sed "s|\(target\.path[[:space:]]*\)=\([[:space:]]*\).*|\1=\2\$\$QWT_INSTALL_PREFIX/plugins/designer|g" < designer.pro > %tmpfile%
43 move /y %tmpfile% designer.pro
46 REM remove debug build only if release build is requested
49 attrib -R qwtbuild.pri
50 sed "s|\(CONFIG[[:space:]]*+=[[:space:]]*debug_and_release\)|#\1|g" < qwtbuild.pri > %tmpfile%
51 move /y %tmpfile% qwtbuild.pri
52 sed "s|\(CONFIG[[:space:]]*+=[[:space:]]*build_all\)|#\1|g" < qwtbuild.pri > %tmpfile%
53 move /y %tmpfile% qwtbuild.pri
57 echo --------------------------------------------------------------------------
59 echo --------------------------------------------------------------------------
63 if NOT %ERRORLEVEL% == 0 (
64 echo ERROR on qmake : %ERRORLEVEL%
69 echo --------------------------------------------------------------------------
71 echo --------------------------------------------------------------------------
75 if NOT %ERRORLEVEL% == 0 (
81 echo --------------------------------------------------------------------------
82 echo *** nmake install
83 echo --------------------------------------------------------------------------
87 if NOT %ERRORLEVEL% == 0 (
88 echo ERROR on nmake install
95 :: ========== FUNCTIONS ==========
99 set tmpfile=%TMP%\mytempfile-%RANDOM%.tmp
100 if exist "%tmpfile%" GOTO :GETTEMPNAME