]> git.saurik.com Git - wxWidgets.git/blob - demos/life/setup/wince/build.bat
incomplete paste error
[wxWidgets.git] / demos / life / setup / wince / build.bat
1 @echo off
2 REM
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.
6 REM
7
8 REM
9 REM You Must modify the following directories to point to the correct locations.
10 REM
11
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"
16
17 if not exist ARM_bins mkdir ARM_bins
18
19 if not exist %lifeARMBinary% goto NoBin
20 @echo "Copying binary to ARM_bins..."
21 copy %lifeARMBinary% ARM_bins
22
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
27
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
30
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
35 copy life.ico Deliver
36 copy setup.exe Deliver
37
38 echo "Built: see the Deliver directory for the installation files."
39 goto Exit
40
41 :Usage
42 @echo ---
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)
47 @echo ---
48
49 goto Exit
50
51 :NoBin
52 @echo You need to build %lifeARMBinary%.
53
54 :Exit
55