@REM -- Bat called:
@REM -- cebldtree.bat:
@REM -- cebuild1.bat:
@REM -- Entry Vars:
@REM -- Exit vars:
@REM -- Temp vars: ___OLDWINCEREL
@REM -----------------------------------------------------

set __QBLDPASS=preproc

echo CEBUILD: Deleting old build logs
if exist build.log del build.log
if exist build.wrn del build.wrn
if exist build.err del build.err
if exist build.con del build.con

@REM // Parse the arguments
:loop_1
@REM // switch %1
if not "%1"=="-r" goto endcas_1
set WINCEREL=%___OLDWINCEREL%
goto endswt_1
:endcas_1
if not "%1"=="-l" goto endcas_2
set __QBLDLOCAL=1
goto endswt_1
:endcas_2
if not "%1"=="-q" goto endcas_3
echo CEBUILD: Skipping directly to SYSGEN phase
set __QBLDQUICK=1
goto endswt_1
:endcas_3
if not "%1"=="-c" goto endcas_4
echo CEBUILD: Building CLEAN
set __QBLDCLEAN=-c
goto endswt_1
:endcas_4
@REM // all done
goto endloop_1
:endswt_1
shift
goto loop_1
:endloop_1

@REM -----------------------------------------------------
@REM -- Build all the trees

(__QBLDPASS=preproc)
for %%f in (%_DEPTREES%) do call cebldtree %%f -s %1 %2 %3 %4 %5 %6 %7
(_DEPTREES = winceos dcom netcf ie script servers rdp shellsdk shell wceshellfe wceappsfe viewers directx datasync SQLCE speech FSForthSysteme_I82559Kdbg Canoe)

@REM // now do the postproc sysgen
set __QBLDQUICK=1
set __QBLDCLEAN=
set __QBLDPASS=postproc
for %%f in (%_DEPTREES%) do call cebldtree %%f -s %1 %2 %3 %4 %5 %6 %7

@REM -- Build the platform
set __QBLDQUICK=
set __QBLDCLEAN=
set __QBLDPASS=preproc

call SysgenPlatform %_TARGETPLATROOT% %__QBLDPASS%
call cebuild1 platform %_PLATFORMROOT%\%_TGTPLAT% -s %1 %2 %3 %4 %5 %6 %7
set __QBLDPASS=postproc
call SysgenPlatform %_TARGETPLATROOT% %__QBLDPASS%
:endif_20

@REM Check for error files in places we built
if exist %_WINCEROOT%\build.err echo !!!!! There were errors building. Check %_WINCEROOT%\build.err

@REM -----------------------------------------------------
@REM -- Cleanup

goto done

:no_root
echo Could not find %_WINCEROOT% directory
goto done

:usage
echo.
echo CEBuild: Builds Windows CE operating system, project, and platform modules.
echo.
echo Usage: cebuild [-h] [-r] [-q] [build_flags]
echo. [-h] : Displays this help screen
echo. [-r] : Releases binaries if WINCEREL is set
echo. [-q] : sysgen phase only. skip building private/public
echo. [-l] : Local only - does not try to update binaries from
echo. the server for a setupoak'd tree. To use this you
echo. should have used the -a flag in your setupoak
echo build_flags: Passed on to build
goto done
:endusage

:done
set WINCEREL=%___OLDWINCEREL%
set ___OLDWINCEREL=
set __QBLDQUICK=
set __QBLDCLEAN=
set __QBLDPASS=

@REM -----------------------------------------------------
if not "%PROCESSOR_ARCHITECTURE%"=="" endlocal

 
 

Contact:

 

 
Last updated: 2004-11-08 11:38