blob: a4fc0eb7a8c64e69f08c426a18aca646a6374387 [file] [log] [blame]
Jonathan Lennoxab2a82d2010-05-15 00:24:10 +00001:: 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 Lennoxaf2d1762016-09-13 15:15:44 -040017@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 Lennoxab2a82d2010-05-15 00:24:10 +000018 if not exist "%%d" (
19 echo "%%d not found: are you in the right directory?"
20 exit /b 1
21 )
22)
23
24mkdir %destdir%\include
Jonathan Lennox701bb792016-09-12 18:40:41 -040025mkdir %destdir%\include\srtp2
Jonathan Lennoxab2a82d2010-05-15 00:24:10 +000026mkdir %destdir%\lib
Jonathan Lennoxdaab7062016-09-13 16:38:57 -040027mkdir %destdir%\lib\x64
Jonathan Lennoxab2a82d2010-05-15 00:24:10 +000028
Jonathan Lennoxaf2d1762016-09-13 15:15:44 -040029@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 Lennox701bb792016-09-12 18:40:41 -040032copy Release\srtp2.lib %destdir%\lib\srtp2.lib
33copy Debug\srtp2.lib %destdir%\lib\srtp2d.lib
Jonathan Lennoxdaab7062016-09-13 16:38:57 -040034copy x64\Release\srtp2.lib %destdir%\lib\x64\srtp2.lib
35copy x64\Debug\srtp2.lib %destdir%\lib\x64\srtp2d.lib