buildlibs.bat 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. echo All done