@echo off
if not exist ..\win32\vs_tmpl\mkmsvc.exe goto missingmkmsvc
echo generating MSVC7.1 project as win32-msvc71-ffmpeg-ffmpeg
if exist win32-msvc71-ffmpeg-ffmpeg goto removedir
:makemsvcdir
mkdir win32-msvc71-ffmpeg-ffmpeg
cd ..\win32\vs_tmpl
mkmsvc.exe -ffmpeg -sdl -71 vice
cd ..\..\sdl
copy msvc-files\make-bindist.bat.proto win32-msvc71-ffmpeg-ffmpeg\make-msvc-bindist.bat
copy msvc-files\dirent.h win32-msvc71-ffmpeg-ffmpeg
copy msvc-files\ide-config.h win32-msvc71-ffmpeg-ffmpeg
copy msvc-files\ide-siddefs.h win32-msvc71-ffmpeg-ffmpeg
copy msvc-files\ide-siddtvdefs.h win32-msvc71-ffmpeg-ffmpeg
copy msvc-files\inttypes.h win32-msvc71-ffmpeg-ffmpeg
copy msvc-files\stdint.h win32-msvc71-ffmpeg-ffmpeg
copy msvc-files\vice.manifest win32-msvc71-ffmpeg-ffmpeg
copy msvc-files\ffmpeg-config.h win32-msvc71-ffmpeg
copy msvc-files\lame-config.h win32-msvc71-ffmpeg
copy msvc-files\x264_config.h win32-msvc71-ffmpeg
copy msvc-files\x264-config.h win32-msvc71-ffmpeg
echo MSVC7.1 project files generated in win32-msvc71-ffmpeg-ffmpeg
goto end
:missingmkmsvc
echo ..\win32\vs_tmpl\mkmsvc.exe is missing
goto end
:removedir
echo y | del win32-msvc71-ffmpeg-ffmpeg\*.* /S
rd win32-msvc71-ffmpeg-ffmpeg /s /q
if exist win32-msvc71-ffmpeg-ffmpeg goto cannotremovedir
goto makemsvcdir
:cannotremovedir
echo can't delete the win32-msvc71-ffmpeg-ffmpeg directory, please remove win32-msvc71-ffmpeg-ffmpeg manually and run this batch file again.
:end
pause
