summaryrefslogtreecommitdiff
path: root/third_party/srtp/install-win.bat
blob: d95d6d9f4d5b601e966e9916c93065d13c6bd085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
:: Installs from srtp windows build directory to directory specified on
:: command line


@if "%1"=="" (
	echo "Usage: %~nx0 destdir"
	exit /b 1
) else (
	set destdir=%1
)

@if not exist %destdir% (
   echo %destdir% not found
   exit /b 1
)

@for %%d in (include\srtp.h crypto\include\crypto.h Debug\srtp.lib Release\srtp.lib) do (
	if not exist "%%d" (
	   echo "%%d not found: are you in the right directory?"
	   exit /b 1
	)
)

mkdir %destdir%\include
mkdir %destdir%\include\srtp
mkdir %destdir%\lib

copy include\*.h %destdir%\include\srtp
copy crypto\include\*.h %destdir%\include\srtp
copy Release\srtp.lib %destdir%\lib\srtp.lib
copy Debug\srtp.lib %destdir%\lib\srtpd.lib