buildlibs.bat 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @echo off
  2. set BUILDTOOLS_PATH=%1
  3. if not exist lib mkdir lib
  4. rem ==== OpenSSL ====
  5. if exist lib\libeay32.lib (
  6. echo OpenSSL already built
  7. goto SKIP_OPENSSL
  8. )
  9. echo Building OpenSSL ...
  10. cd openssl
  11. make
  12. cd ..
  13. if not exist lib\libeay32.lib (
  14. echo OpenSSL build failed
  15. exit
  16. )
  17. :SKIP_OPENSSL
  18. rem ==== Expat ====
  19. if exist lib\libexpats_mtd.lib (
  20. echo Expat already built
  21. goto SKIP_EXPAT
  22. )
  23. echo Building Expat ...
  24. cd expat\bcb5
  25. make -f makefile.mak
  26. cd ..\..
  27. if not exist expat\bcb5\release\libexpats_mtd.lib (
  28. echo Expat build failed
  29. exit
  30. )
  31. copy expat\bcb5\release\libexpats_mtd.lib lib
  32. :SKIP_EXPAT
  33. rem ==== neon ====
  34. if exist lib\neon.lib (
  35. echo neon already built
  36. goto SKIP_NEON
  37. )
  38. echo Building neon ...
  39. cd neon
  40. make -f Makefile.bcb all
  41. cd ..
  42. if not exist lib\neon.lib (
  43. echo neon build failed
  44. exit
  45. )
  46. :SKIP_NEON
  47. rem ==== PuTTY VS ====
  48. if exist lib\PuTTYVS.lib (
  49. echo PuTTYVS already built
  50. goto SKIP_PUTTYVS
  51. )
  52. echo Building PuTTYVS ...
  53. cd puttyvs
  54. call build.bat %BUILDTOOLS_PATH%
  55. cd ..
  56. if not exist lib\PuTTYVS.lib (
  57. echo PuTTYVS build failed
  58. exit
  59. )
  60. :SKIP_PUTTYVS
  61. rem ==== libs3 ====
  62. if exist lib\libs3.lib (
  63. echo libs3 already built
  64. goto SKIP_LIBS3
  65. )
  66. echo Building libs3 ...
  67. cd libs3
  68. make all
  69. cd ..
  70. if not exist lib\libs3.lib (
  71. echo libs3 build failed
  72. exit
  73. )
  74. :SKIP_LIBS3
  75. echo All done