buildlibs.bat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. call setup.bat
  26. make -f makefile.mak expat_static
  27. cd ..\..
  28. if not exist expat\bcb5\release\libexpats_mtd.lib (
  29. echo Expat build failed
  30. exit
  31. )
  32. copy expat\bcb5\release\libexpats_mtd.lib lib
  33. :SKIP_EXPAT
  34. rem ==== neon ====
  35. if exist lib\neon.lib (
  36. echo neon already built
  37. goto SKIP_NEON
  38. )
  39. echo Building neon ...
  40. cd neon
  41. make -f Makefile.bcb all
  42. cd ..
  43. if not exist lib\neon.lib (
  44. echo neon build failed
  45. exit
  46. )
  47. :SKIP_NEON
  48. rem ==== PuTTY VS ====
  49. if exist lib\PuTTYVS.lib (
  50. echo PuTTYVS already built
  51. goto SKIP_PUTTYVS
  52. )
  53. echo Building PuTTYVS ...
  54. cd puttyvs
  55. call build.bat %BUILDTOOLS_PATH%
  56. cd ..
  57. if not exist lib\PuTTYVS.lib (
  58. echo PuTTYVS build failed
  59. exit
  60. )
  61. :SKIP_PUTTYVS
  62. echo All done