Jonathan Lennox | ab2a82d | 2010-05-15 00:24:10 +0000 | [diff] [blame^] | 1 | :: Installs from srtp windows build directory to directory specified on |
| 2 | :: command line |
| 3 | |
| 4 | |
| 5 | @if "%1"=="" ( |
| 6 | echo "Usage: %~nx0 destdir" |
| 7 | exit /b 1 |
| 8 | ) else ( |
| 9 | set destdir=%1 |
| 10 | ) |
| 11 | |
| 12 | @if not exist %destdir% ( |
| 13 | echo %destdir% not found |
| 14 | exit /b 1 |
| 15 | ) |
| 16 | |
| 17 | @for %%d in (include\srtp.h crypto\include\crypto.h Debug\srtp.lib Release\srtp.lib) do ( |
| 18 | if not exist "%%d" ( |
| 19 | echo "%%d not found: are you in the right directory?" |
| 20 | exit /b 1 |
| 21 | ) |
| 22 | ) |
| 23 | |
| 24 | mkdir %destdir%\include |
| 25 | mkdir %destdir%\include\srtp |
| 26 | mkdir %destdir%\lib |
| 27 | |
| 28 | copy include\*.h %destdir%\include\srtp |
| 29 | copy crypto\include\*.h %destdir%\include\srtp |
| 30 | copy Release\srtp.lib %destdir%\lib\srtp.lib |
| 31 | copy Debug\srtp.lib %destdir%\lib\srtpd.lib |