• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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\cipher.h Debug\srtp2.lib Release\srtp2.lib x64\Debug\srtp2.lib x64\Release\srtp2.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
24mkdir %destdir%\include
25mkdir %destdir%\include\srtp2
26mkdir %destdir%\lib
27mkdir %destdir%\lib\x64
28
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)
32copy Release\srtp2.lib %destdir%\lib\srtp2.lib
33copy Debug\srtp2.lib %destdir%\lib\srtp2d.lib
34copy x64\Release\srtp2.lib %destdir%\lib\x64\srtp2.lib
35copy x64\Debug\srtp2.lib %destdir%\lib\x64\srtp2d.lib
36