~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
REM
REM build.bat creates the CAB files
REM Note that when invoking the .ini file with AppMgr (e.g. via setup.exe),
REM you must use the full path, or ActiveSync will report an error with the setup.
REM

REM
REM You Must modify the following directories to point to the correct locations.
REM

set lifeDir=%WXWIN%\demos\life
set lifeARMBinary="%lifeDir%\evc_wince_armv4\life.exe"
set fileLife="%lifeDir%\setup\wince\life.inf"
set fileCabwiz="c:\program files\windows ce tools\wce420\pocket pc 2003\Tools\cabwiz.exe"

if not exist ARM_bins mkdir ARM_bins

if not exist %lifeARMBinary% goto NoBin
@echo "Copying binary to ARM_bins..."
copy %lifeARMBinary% ARM_bins

if not exist %fileLife% goto Usage
if not exist %fileCabwiz% goto Usage
@echo Building %fileCabwiz% %fileLife%
%fileCabwiz% %fileLife% /err life.err /cpu PPC2003_ARM

REM To make CABs for two CPUS, use this line and uncomment lines in the .inf file
REM %fileCabwiz% %fileLife% /err life.err /cpu PPC2003_ARM PPC2003_x86

@echo Copying setup files to the Deliver directory
if not exist Deliver mkdir Deliver
copy life.*.CAB Deliver
copy install.ini Deliver
copy life.ico Deliver
copy setup.exe Deliver

echo "Built: see the Deliver directory for the installation files."
goto Exit

:Usage
@echo ---
@echo Edit this batch file to point to the correct directories
@echo    fileLife = %fileLife%
@echo    fileCabwiz  = %fileCabwiz%
@echo       (these files are included in the Windows CE SDK)
@echo ---

goto Exit

:NoBin
@echo You need to build %lifeARMBinary%.

:Exit