Permalink
Browse files

Add an install-win.bat script corresponding to the 'make install' tar…

…get on Unix.
  • Loading branch information...
1 parent 28bd7c1 commit ab2a82d022daa51316f6aac5913172ba15183532 @JonathanLennox JonathanLennox committed May 15, 2010
Showing with 31 additions and 0 deletions.
  1. +31 −0 install-win.bat
View
@@ -0,0 +1,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

0 comments on commit ab2a82d

Please sign in to comment.