Files
scummvm/devtools/create_project/scripts/postbuild.cmd
T
Littleboy 878d72b387 CREATE_PROJECT: Move project-specific information to configuration file
User-visible output and project-specific names are now defined in a config header.
This allows an easier usage of the create_project tools in other scummvm-derived projects (such as residual).
2011-04-24 16:59:48 -04:00

52 lines
1.2 KiB
Batchfile

REM @echo off
REM ---------------------------------------------------------------
REM -- Post-Build Script
REM ---------------------------------------------------------------
REM
REM Copy engine data, themes, translation and required dlls to the
REM output folder.
REM
REM Expected parameters
REM Root folder
REM Output folder
REM Architecture
REM Libs folder
if "%~1"=="" goto error_root
if "%~2"=="" goto error_output
if "%~3"=="" goto error_arch
if "%~4"=="" goto error_libs
echo Copying data files
echo.
REM Copy files
xcopy /F /Y "%~1/dists/engine-data/*.dat" %~2 > NUL 2>&1
xcopy /F /Y "%~1/dists/engine-data/*.tbl" %~2 > NUL 2>&1
xcopy /F /Y "%~1/dists/engine-data/*.cpt" %~2 > NUL 2>&1
xcopy /F /Y "%~1/dists/engine-data/README" %~2 > NUL 2>&1
xcopy /F /Y "%~1/gui/themes/*.zip" %~2 > NUL 2>&1
xcopy /F /Y "%~1/gui/themes/translations.dat" %~2 > NUL 2>&1
xcopy /F /Y "%~4/lib/%~3/SDL.dll" %~2 > NUL 2>&1
goto done
:error_root
echo Invalid root folder (%~1)!
goto done
:error_output
echo Invalid output folder (%~2)!
goto done
:error_arch
echo Invalid arch parameter (was: %~3, allowed: x86, x64)!
goto done
:error_libs
echo Invalid libs folder (%~4)!
goto done
:done
exit /B0