3
REM build.bat creates the CAB files
4
REM Note that when invoking the .ini file with AppMgr (e.g. via setup.exe),
5
REM you must use the full path, or ActiveSync will report an error with the setup.
9
REM You Must modify the following directories to point to the correct locations.
12
set lifeDir=%WXWIN%\demos\life
13
set lifeARMBinary="%lifeDir%\evc_wince_armv4\life.exe"
14
set fileLife="%lifeDir%\setup\wince\life.inf"
15
set fileCabwiz="c:\program files\windows ce tools\wce420\pocket pc 2003\Tools\cabwiz.exe"
17
if not exist ARM_bins mkdir ARM_bins
19
if not exist %lifeARMBinary% goto NoBin
20
@echo "Copying binary to ARM_bins..."
21
copy %lifeARMBinary% ARM_bins
23
if not exist %fileLife% goto Usage
24
if not exist %fileCabwiz% goto Usage
25
@echo Building %fileCabwiz% %fileLife%
26
%fileCabwiz% %fileLife% /err life.err /cpu PPC2003_ARM
28
REM To make CABs for two CPUS, use this line and uncomment lines in the .inf file
29
REM %fileCabwiz% %fileLife% /err life.err /cpu PPC2003_ARM PPC2003_x86
31
@echo Copying setup files to the Deliver directory
32
if not exist Deliver mkdir Deliver
33
copy life.*.CAB Deliver
34
copy install.ini Deliver
36
copy setup.exe Deliver
38
echo "Built: see the Deliver directory for the installation files."
43
@echo Edit this batch file to point to the correct directories
44
@echo fileLife = %fileLife%
45
@echo fileCabwiz = %fileCabwiz%
46
@echo (these files are included in the Windows CE SDK)
52
@echo You need to build %lifeARMBinary%.