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 | af2d176 | 2016-09-13 15:15:44 -0400 | [diff] [blame] | 17 | @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 ( |
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 |
Jonathan Lennox | daab706 | 2016-09-13 16:38:57 -0400 | [diff] [blame] | 27 | mkdir %destdir%\lib\x64 |
Jonathan Lennox | ab2a82d | 2010-05-15 00:24:10 +0000 | [diff] [blame] | 28 | |
Jonathan Lennox | af2d176 | 2016-09-13 15:15:44 -0400 | [diff] [blame] | 29 | @for %%d in (include\srtp.h include\ekt.h crypto\include\cipher.h crypto\include\auth.h crypto\include\crypto_types.h) do ( |
| 30 | copy %%d %destdir%\include\srtp2 |
| 31 | ) |
Jonathan Lennox | 701bb79 | 2016-09-12 18:40:41 -0400 | [diff] [blame] | 32 | copy Release\srtp2.lib %destdir%\lib\srtp2.lib |
| 33 | copy Debug\srtp2.lib %destdir%\lib\srtp2d.lib |
Jonathan Lennox | daab706 | 2016-09-13 16:38:57 -0400 | [diff] [blame] | 34 | copy x64\Release\srtp2.lib %destdir%\lib\x64\srtp2.lib |
| 35 | copy x64\Debug\srtp2.lib %destdir%\lib\x64\srtp2d.lib |