build.bat 726 B

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