aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_project/scripts/postbuild.cmd
diff options
context:
space:
mode:
authorLittleboy2011-04-24 13:33:23 -0400
committerLittleboy2011-04-24 16:59:48 -0400
commit878d72b387d13bdb7713b142abae32bc28a51047 (patch)
tree0d34098e2c46a15297ad3fe5cb41681888adfe9e /devtools/create_project/scripts/postbuild.cmd
parent11b907ebf45f5a0707c2748b8f7413b2910976a8 (diff)
downloadscummvm-rg350-878d72b387d13bdb7713b142abae32bc28a51047.tar.gz
scummvm-rg350-878d72b387d13bdb7713b142abae32bc28a51047.tar.bz2
scummvm-rg350-878d72b387d13bdb7713b142abae32bc28a51047.zip
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).
Diffstat (limited to 'devtools/create_project/scripts/postbuild.cmd')
-rw-r--r--devtools/create_project/scripts/postbuild.cmd8
1 files changed, 7 insertions, 1 deletions
diff --git a/devtools/create_project/scripts/postbuild.cmd b/devtools/create_project/scripts/postbuild.cmd
index f548b81442..6c062f7ab1 100644
--- a/devtools/create_project/scripts/postbuild.cmd
+++ b/devtools/create_project/scripts/postbuild.cmd
@@ -11,10 +11,12 @@ 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.
@@ -26,7 +28,7 @@ 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 "%SCUMMVM_LIBS%/lib/%~3/SDL.dll" %~2 > NUL 2>&1
+xcopy /F /Y "%~4/lib/%~3/SDL.dll" %~2 > NUL 2>&1
goto done
:error_root
@@ -41,5 +43,9 @@ goto done
echo Invalid arch parameter (was: %~3, allowed: x86, x64)!
goto done
+:error_libs
+echo Invalid libs folder (%~4)!
+goto done
+
:done
exit /B0