build.bat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. rem ugly build script
  2. @echo off
  3. if "%2" == "run" goto run
  4. if "%1" == "third" goto third
  5. if "%1" == "core" goto core
  6. if "%1" == "text" goto text
  7. if "%1" == "ui" goto ui
  8. if "%1" == "fb" goto fb
  9. echo Error: not enough arguments.
  10. echo Usage:
  11. echo build target [action]
  12. echo target: "third | core | text | ui | fb"
  13. echo action: "build (default), clean, init, run"
  14. goto end
  15. :third
  16. cd third-party\symbian\expat-2.0.1\symbian
  17. bldmake bldfiles
  18. call abld clean
  19. call abld build winscw udeb
  20. cd ..\..\..\..
  21. cd third-party\symbian\SQLiteS60\SQLite60\group
  22. bldmake bldfiles
  23. call abld clean
  24. call abld build winscw udeb
  25. cd ..\..\..\..\..
  26. goto end
  27. :core
  28. cd zlibrary\core
  29. if "%2" == "init" bldmake bldfiles
  30. if "%2" == "clean" abld clean
  31. call abld build winscw udeb
  32. cd ..\..
  33. goto end
  34. :text
  35. cd zlibrary\text
  36. if "%2" == "init" bldmake bldfiles
  37. if "%2" == "clean" abld clean
  38. call abld build winscw udeb
  39. cd ..\..
  40. goto end
  41. :ui
  42. cd zlibrary\ui
  43. if "%2" == "init" bldmake bldfiles
  44. if "%2" == "clean" abld clean
  45. call abld build winscw udeb
  46. cd ..\..
  47. goto end
  48. :fb
  49. cd fbreader
  50. if "%2" == "init" bldmake bldfiles
  51. if "%2" == "clean" abld clean
  52. call abld build winscw udeb
  53. cd ..
  54. goto end
  55. :run
  56. C:\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\winscw\udeb\fbreader
  57. goto end
  58. :end