install-win.bat 939 B

1234567891011121314151617181920212223242526272829303132333435
  1. :: Installs from srtp windows build directory to directory specified on
  2. :: command line
  3. @if "%1"=="" (
  4. echo "Usage: %~nx0 destdir"
  5. exit /b 1
  6. ) else (
  7. set destdir=%1
  8. )
  9. @if not exist %destdir% (
  10. echo %destdir% not found
  11. exit /b 1
  12. )
  13. @for %%d in (include\srtp.h crypto\include\cipher.h Debug\srtp2.lib Release\srtp2.lib x64\Debug\srtp2.lib x64\Release\srtp2.lib) do (
  14. if not exist "%%d" (
  15. echo "%%d not found: are you in the right directory?"
  16. exit /b 1
  17. )
  18. )
  19. mkdir %destdir%\include
  20. mkdir %destdir%\include\srtp2
  21. mkdir %destdir%\lib
  22. mkdir %destdir%\lib\x64
  23. @for %%d in (include\srtp.h include\ekt.h crypto\include\cipher.h crypto\include\auth.h crypto\include\crypto_types.h) do (
  24. copy %%d %destdir%\include\srtp2
  25. )
  26. copy Release\srtp2.lib %destdir%\lib\srtp2.lib
  27. copy Debug\srtp2.lib %destdir%\lib\srtp2d.lib
  28. copy x64\Release\srtp2.lib %destdir%\lib\x64\srtp2.lib
  29. copy x64\Debug\srtp2.lib %destdir%\lib\x64\srtp2d.lib