2
0

gather-package.bat 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. rem Create empty directories for package bundle
  2. @echo off
  3. IF "%PLATFORM%"=="x86" (
  4. SET FOLDER_PLATFORM="32"
  5. ) ELSE IF "%PLATFORM%"=="x64" (
  6. SET FOLDER_PLATFORM="64"
  7. ) ELSE (
  8. echo "Platform %PLATFORM% is not supported"
  9. exit 1
  10. )
  11. md %APPVEYOR_BUILD_FOLDER%\package
  12. md %APPVEYOR_BUILD_FOLDER%\package\include
  13. md %APPVEYOR_BUILD_FOLDER%\package\include\win
  14. md %APPVEYOR_BUILD_FOLDER%\package\bin
  15. md %APPVEYOR_BUILD_FOLDER%\package\lib
  16. IF "%GATHER_SSL_INTO_PACKAGE%"=="True" (
  17. md %APPVEYOR_BUILD_FOLDER%\package\openssl-win%FOLDER_PLATFORM%
  18. )
  19. rem Gather SRT includes, binaries and libs
  20. copy %APPVEYOR_BUILD_FOLDER%\version.h %APPVEYOR_BUILD_FOLDER%\package\include\
  21. copy %APPVEYOR_BUILD_FOLDER%\srtcore\*.h %APPVEYOR_BUILD_FOLDER%\package\include\
  22. copy %APPVEYOR_BUILD_FOLDER%\haicrypt\*.h %APPVEYOR_BUILD_FOLDER%\package\include\
  23. copy %APPVEYOR_BUILD_FOLDER%\common\*.h %APPVEYOR_BUILD_FOLDER%\package\include\
  24. copy %APPVEYOR_BUILD_FOLDER%\common\win\*.h %APPVEYOR_BUILD_FOLDER%\package\include\win\
  25. copy %APPVEYOR_BUILD_FOLDER%\_build\%CONFIGURATION%\*.exe %APPVEYOR_BUILD_FOLDER%\package\bin\
  26. copy %APPVEYOR_BUILD_FOLDER%\_build\%CONFIGURATION%\*.dll %APPVEYOR_BUILD_FOLDER%\package\bin\
  27. copy %APPVEYOR_BUILD_FOLDER%\_build\%CONFIGURATION%\*.lib %APPVEYOR_BUILD_FOLDER%\package\lib\
  28. copy %APPVEYOR_BUILD_FOLDER%\_build\%CONFIGURATION%\*.pdb %APPVEYOR_BUILD_FOLDER%\package\bin\
  29. rem Gather 3rd party openssl elements
  30. IF "%GATHER_SSL_INTO_PACKAGE%"=="True" (
  31. (robocopy c:\openssl-win%FOLDER_PLATFORM%\ %APPVEYOR_BUILD_FOLDER%\package\openssl-win%FOLDER_PLATFORM% /s /e /np) ^& IF %ERRORLEVEL% GTR 1 exit %ERRORLEVEL%
  32. )
  33. exit 0