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).
This commit is contained in:
parent
11b907ebf4
commit
878d72b387
13 changed files with 209 additions and 127 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue