2003-10-09 19:48:29 +02:00
|
|
|
|
|
|
|
@echo off
|
|
|
|
|
2007-10-10 16:00:25 +02:00
|
|
|
:: Reset or clear some variables, as appropriate.
|
2003-10-15 14:47:31 +02:00
|
|
|
set ERRLEV=0
|
2007-10-10 16:00:25 +02:00
|
|
|
set FB_NOCLEAN=
|
|
|
|
set FBBUILD_BUILDTYPE=release
|
|
|
|
set FBBUILD_INCLUDE_PDB=
|
2003-10-15 14:47:31 +02:00
|
|
|
|
2007-10-10 16:00:25 +02:00
|
|
|
:: Read the command line
|
|
|
|
for %%v in ( %* ) do (
|
|
|
|
( if /I "%%v"=="NOCLEAN" (set FB_NOCLEAN=1) )
|
|
|
|
( if /I "%%v"=="DEBUG" (set FBBUILD_BUILDTYPE=debug) )
|
|
|
|
( if /I "%%v"=="PDB" (set FBBUILD_INCLUDE_PDB=1) )
|
|
|
|
)
|
|
|
|
|
|
|
|
:: Go to work
|
2007-07-30 12:56:16 +02:00
|
|
|
if not defined FB_NOCLEAN (call clean_all)
|
2007-10-10 16:00:25 +02:00
|
|
|
:: We do not support debug builds of icu, so we don't pass %FBBUILD_BUILDTYPE%
|
2007-09-12 16:05:00 +02:00
|
|
|
call make_icu
|
2007-02-26 16:18:41 +01:00
|
|
|
if "%ERRLEV%"=="1" goto :END
|
2007-10-10 16:00:25 +02:00
|
|
|
call make_boot %FBBUILD_BUILDTYPE%
|
2007-02-26 16:18:41 +01:00
|
|
|
if "%ERRLEV%"=="1" goto :END
|
2007-10-10 16:00:25 +02:00
|
|
|
call make_all %FBBUILD_BUILDTYPE%
|
2007-02-26 16:18:41 +01:00
|
|
|
if "%ERRLEV%"=="1" goto :END
|
2007-10-10 16:00:25 +02:00
|
|
|
call make_examples %FBBUILD_BUILDTYPE%
|
2007-02-26 16:18:41 +01:00
|
|
|
if "%ERRLEV%"=="1" goto :END
|
2007-10-10 16:00:25 +02:00
|
|
|
|
|
|
|
:: Package everything up
|
2007-02-26 16:18:41 +01:00
|
|
|
pushd ..\install\arch-specific\win32
|
2007-10-10 16:00:25 +02:00
|
|
|
call BuildExecutableInstall ISX ZIP EMB %FBBUILD_BUILDTYPE%
|
|
|
|
if "%ERRLEV%"=="1" (popd & goto :END)
|
|
|
|
if defined FBBUILD_INCLUDE_PDB (
|
|
|
|
set FBBUILD_PACKAGE_NUMBER=
|
|
|
|
call BuildExecutableInstall ISX ZIP EMB %FBBUILD_BUILDTYPE% PDB
|
|
|
|
)
|
2007-02-26 16:18:41 +01:00
|
|
|
popd
|
2003-10-09 19:48:29 +02:00
|
|
|
|
2007-02-26 16:18:41 +01:00
|
|
|
goto:END
|
2003-10-15 14:47:31 +02:00
|
|
|
|
2003-10-09 19:48:29 +02:00
|
|
|
|
2007-02-26 16:18:41 +01:00
|
|
|
:END
|