build.bat 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. REM
  8. REM You Must modify the following directories to point to the correct locations.
  9. REM
  10. set lifeDir=%WXWIN%\demos\life
  11. set lifeARMBinary="%lifeDir%\evc_wince_armv4\life.exe"
  12. set fileLife="%lifeDir%\setup\wince\life.inf"
  13. set fileCabwiz="c:\program files\windows ce tools\wce420\pocket pc 2003\Tools\cabwiz.exe"
  14. if not exist ARM_bins mkdir ARM_bins
  15. if not exist %lifeARMBinary% goto NoBin
  16. @echo "Copying binary to ARM_bins..."
  17. copy %lifeARMBinary% ARM_bins
  18. if not exist %fileLife% goto Usage
  19. if not exist %fileCabwiz% goto Usage
  20. @echo Building %fileCabwiz% %fileLife%
  21. %fileCabwiz% %fileLife% /err life.err /cpu PPC2003_ARM
  22. REM To make CABs for two CPUS, use this line and uncomment lines in the .inf file
  23. REM %fileCabwiz% %fileLife% /err life.err /cpu PPC2003_ARM PPC2003_x86
  24. @echo Copying setup files to the Deliver directory
  25. if not exist Deliver mkdir Deliver
  26. copy life.*.CAB Deliver
  27. copy install.ini Deliver
  28. copy life.ico Deliver
  29. copy setup.exe Deliver
  30. echo "Built: see the Deliver directory for the installation files."
  31. goto Exit
  32. :Usage
  33. @echo ---
  34. @echo Edit this batch file to point to the correct directories
  35. @echo fileLife = %fileLife%
  36. @echo fileCabwiz = %fileCabwiz%
  37. @echo (these files are included in the Windows CE SDK)
  38. @echo ---
  39. goto Exit
  40. :NoBin
  41. @echo You need to build %lifeARMBinary%.
  42. :Exit