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