@echo off echo Copying files... set SolutionDir=%1 set Config=%2 set VCDir=%~f3 set ResourceDir=%SolutionDir%%Config%\..\..\..\rsrc set TargetDir=%SolutionDir%%Config% set DllSrcDir=%VCDir%bin @echo on @echo Copying graphics... xcopy %ResourceDir%\graphics\*.png %TargetDir%\data\graphics /s /y /i /d @echo Copying cursors... xcopy %ResourceDir%\cursors\*.gif %TargetDir%\data\cursors /s /y /i /d @echo Copying sound effects... xcopy %ResourceDir%\sounds\*.WAV %TargetDir%\data\sounds /s /y /i /d @echo Copying dialog definitions... xcopy %ResourceDir%\dialogs\*.xml %TargetDir%\data\dialogs /s /y /i /d @echo Copying fonts... xcopy %ResourceDir%\fonts\*.ttf %TargetDir%\data\fonts /s /y /i /d @echo Copying string lists... xcopy %ResourceDir%\strings\*.txt %TargetDir%\data\strings /s /y /i /d @echo Copying shaders... xcopy %ResourceDir%\..\src\tools\mask.* %TargetDir%\data\shaders /s /y /i /d @echo Copying base scenarios... cd %ResourceDir%\bases call %ResourceDir%\..\pkg\win\build-scen.bat bladbase bladbase.boes xcopy %ResourceDir%\bases\*.boes %TargetDir%\"Blades of Exile Base" /s /y /i /d @echo Copying scenario files... cd %ResourceDir%\scenarios call %ResourceDir%\..\pkg\win\build-scen.bat busywork busywork.boes call %ResourceDir%\..\pkg\win\build-scen.bat valleydy valleydy.boes call %ResourceDir%\..\pkg\win\build-scen.bat stealth stealth.boes call %ResourceDir%\..\pkg\win\build-scen.bat zakhazi zakhazi.boes xcopy %ResourceDir%\scenarios\*.boes %TargetDir%\"Blades of Exile Scenarios" /s /y /i /d @echo Copying required DLLs... if %Config% == "Debug" ( xcopy "%DllSrcDir%\sfml-audio-d-2.dll" %TargetDir% /s /y /i /d xcopy "%DllSrcDir%\sfml-graphics-d-2.dll" %TargetDir% /s /y /i /d xcopy "%DllSrcDir%\sfml-system-d-2.dll" %TargetDir% /s /y /i /d xcopy "%DllSrcDir%\sfml-window-d-2.dll" %TargetDir% /s /y /i /d ) else ( xcopy "%DllSrcDir%\sfml-audio-2.dll" %TargetDir% /s /y /i /d xcopy "%DllSrcDir%\sfml-graphics-2.dll" %TargetDir% /s /y /i /d xcopy "%DllSrcDir%\sfml-system-2.dll" %TargetDir% /s /y /i /d xcopy "%DllSrcDir%\sfml-window-2.dll" %TargetDir% /s /y /i /d ) xcopy "%DllSrcDir%\zlib1.dll" %TargetDir% /s /y /i /d xcopy "%DllSrcDir%\libsndfile-1.dll" %TargetDir% /s /y /i /d xcopy "%DllSrcDir%\openal32.dll" %TargetDir% /s /y /i /d @echo Generating git revision information... cd %ResourceDir%\..\src rem TODO: Unfortunately this hardcodes the location of bash. c:\bin\Git\bin\bash.exe ../pkg/gitrev.sh .