@REM -- cebldtree <tree>
@REM -- Builds a logical tree
@REM -- Bat called:
@REM -- <tree>.bat: __PUBLICPROJECTS
@REM -- cebuild1.bat:
@REM -- Entry Vars:
@REM -- Exit vars:
@REM -- Temp vars:
@REM -----------------------------------------------------

@REM // For external use, assume the public project is same as tree name
set __PUBLICPROJECTS=%1
if "%1"=="winceos" set __PUBLICPROJECTS=common

if "%__QBLDQUICK%"=="1" goto skip_compile

@REM Handle multiprocessor builds
@REM Use multiple processors, if desired
if not "%BUILD_MULTIPROCESSOR%"=="" (
set bldMP=%NUMBER_OF_PROCESSORS%
) else (
set bldMP=
)
echo bldMP=%bldMP%
:endif_multiproc


@REM ----------------------------------------------------
@REM --- Check if we need to build private

if exist %_PUBLICROOT%\%__PUBLICPROJECTS%\oak\oakver.bat goto endif_10
setlocal
if exist %_PRIVATEROOT%\%1\BldLocalEnv.bat call %_PRIVATEROOT%\%1\BldLocalEnv.bat
call cebuild1 private %_PRIVATEROOT%\%1 %2 %3 %4 %5 %6 %7 %8
endlocal
:endif_10

@REM ----------------------------------------------------
@REM --- Build the public project

call cebuild1 public %_PUBLICROOT%\%__PUBLICPROJECTS% %2 %3 %4 %5 %6 %7 %8 (C:\WINCE420\public\common)

@REM ----------------------------------------------------
@REM --- Do a sysgen if the tree has a sysgen makefile

:skip_compile

if not "%1"=="winceos" goto elseif_40
echo CEBUILD: Running sysgen %__QBLDCLEAN% %__QBLDPASS% (for COMMON)
call sysgen -b %__QBLDCLEAN% %__QBLDPASS%
goto endif_40
:elseif_40
if not exist %_PUBLICROOT%\%__PUBLICPROJECTS%\cesysgen\makefile goto endif_45
echo CEBUILD: Running sysgen -p %__PUBLICPROJECTS% %__QBLDPASS%
call sysgen -p %__PUBLICPROJECTS% -b %__QBLDPASS%
:endif_45
:endif_40
goto done

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

:usage1
echo. ERROR: You have not used setupoak to set the "%1" tree up,
echo. but you are not enlisted in the public and private projects
echo. for this tree to enable you to build it.
echo. ERROR in CEBUILD - dependent project %1 not present >> %_WINCEROOT%\build.err
echo. ERROR in CEBUILD - dependent project %1 not present >> %_WINCEROOT%\build.log
set __QBUILDERROR=1

:done
set __PUBLICPROJECTS=
set __PRIVATEPROJECTS=
set __PLATFORMPROJECTS=
set __COPYCMD=

@REM ----------------------------------------------------

 
 

Contact:

 

 
Last updated: 2004-11-08 14:32