build.bat 678 B

123456789101112131415161718192021222324252627282930313233343536
  1. @echo off
  2. set workPath=%~dp0
  3. set thirdPartyPath=%~dp03rd
  4. if exist %thirdPartyPath% (
  5. echo %thirdPartyPath% exist
  6. rd /S /Q %thirdPartyPath%
  7. )
  8. echo createDir %thirdPartyPath%
  9. md %thirdPartyPath%
  10. cd %thirdPartyPath%
  11. wget --no-check-certificate https://bj.bcebos.com/paddlex/tools/windows_openssl-1.1.0k.zip
  12. tar -zxvf windows_openssl-1.1.0k.zip
  13. del windows_openssl-1.1.0k.zip
  14. cd %workPath%
  15. if exist %workPath%build (
  16. rd /S /Q %workPath%build
  17. )
  18. if exist %workPath%\output (
  19. rd /S /Q %workPath%\output
  20. )
  21. MD %workPath%build
  22. MD %workPath%\output
  23. cd %workPath%build
  24. cmake .. -G "Visual Studio 16 2019" -A x64 -T host=x64 -DCMAKE_BUILD_TYPE=Release
  25. cd %workPath%