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 | |
Jonathan Lennox | 701bb79 | 2016-09-12 18:40:41 -0400 | [diff] [blame^] | 17 | @for %%d in (include\srtp.h Debug\srtp.lib Release\srtp.lib) do ( |
Jonathan Lennox | ab2a82d | 2010-05-15 00:24:10 +0000 | [diff] [blame] | 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 |
Jonathan Lennox | 701bb79 | 2016-09-12 18:40:41 -0400 | [diff] [blame^] | 25 | mkdir %destdir%\include\srtp2 |
Jonathan Lennox | ab2a82d | 2010-05-15 00:24:10 +0000 | [diff] [blame] | 26 | mkdir %destdir%\lib |
| 27 | |
Jonathan Lennox | 701bb79 | 2016-09-12 18:40:41 -0400 | [diff] [blame^] | 28 | copy include\srtp.h include\ekt.h %destdir%\include\srtp2 |
| 29 | copy Release\srtp2.lib %destdir%\lib\srtp2.lib |
| 30 | copy Debug\srtp2.lib %destdir%\lib\srtp2d.lib |