2014-04-29 00:21:41 +00:00
|
|
|
@echo off
|
|
|
|
rem // Copyright (c) 2012- PPSSPP Project.
|
|
|
|
|
|
|
|
rem // This program is free software: you can redistribute it and/or modify
|
|
|
|
rem // it under the terms of the GNU General Public License as published by
|
|
|
|
rem // the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
rem // This program is distributed in the hope that it will be useful,
|
|
|
|
rem // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
rem // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
rem // GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
rem // A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
rem // If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
rem // Official git repository and contact information can be found at
|
|
|
|
rem // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
2015-10-31 12:04:49 +00:00
|
|
|
if not defined vs140comntools (
|
|
|
|
echo "Visual Studio 2015 doesn't appear to be installed properly. Quitting."
|
2014-04-29 00:21:41 +00:00
|
|
|
goto quit
|
2019-01-16 16:41:01 +00:00
|
|
|
) else (
|
2015-10-31 12:04:49 +00:00
|
|
|
call "%vs140comntools%\vsvars32.bat" x86_amd64
|
2014-04-29 00:21:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set PPSSPP_ROOT=%CD%\..
|
|
|
|
set RELEASE_DIR=%CD%\bin-release
|
|
|
|
set RELEASE_X64=PPSSPPWindows64.exe
|
|
|
|
set DEBUG_X64=PPSSPPDebug64.exe
|
|
|
|
|
2014-05-08 21:26:22 +00:00
|
|
|
set RLS_PPSSPP=/m /p:Configuration=Release;Platform=x64
|
|
|
|
set DBG_PPSSPP=/m /p:Configuration=Debug;Platform=x64
|
2014-04-29 00:21:41 +00:00
|
|
|
|
|
|
|
call msbuild PPSSPP.sln /t:Clean %RLS_PPSSPP%
|
|
|
|
call msbuild PPSSPP.sln /t:Build %RLS_PPSSPP%
|
2019-01-16 16:41:01 +00:00
|
|
|
if not exist "%PPSSPP_ROOT%\%RELEASEX64%" (
|
2014-04-29 00:21:41 +00:00
|
|
|
echo Release build failed.
|
|
|
|
goto Quit
|
|
|
|
)
|
|
|
|
call msbuild PPSSPP.sln /t:Clean %DBG_PPSSPP% /m
|
|
|
|
call msbuild PPSSPP.sln /t:Build %DBG_PPSSPP% /m
|
2019-01-16 16:41:01 +00:00
|
|
|
if not exist "%PPSSPP_ROOT%\%DEBUGX64%" (
|
2014-04-29 00:21:41 +00:00
|
|
|
echo Debug build failed.
|
|
|
|
goto Quit
|
|
|
|
)
|
|
|
|
|
2019-01-16 16:41:01 +00:00
|
|
|
if not exist "%RELEASE_DIR%\\." (
|
2014-04-29 00:21:41 +00:00
|
|
|
mkdir %RELEASE_DIR%
|
|
|
|
) else (
|
|
|
|
rmdir /S /Q %RELEASE_DIR%
|
|
|
|
mkdir %RELEASE_DIR%
|
|
|
|
)
|
|
|
|
|
|
|
|
cd /d %RELEASE_DIR%
|
|
|
|
|
|
|
|
xcopy "%PPSSPP_ROOT%\assets" ".\assets\*" /S
|
|
|
|
xcopy "%PPSSPP_ROOT%\flash0" ".\flash0\*" /S
|
|
|
|
xcopy "%PPSSPP_ROOT%\lang" ".\lang\*" /S
|
|
|
|
|
|
|
|
copy %PPSSPP_ROOT%\LICENSE.txt /Y
|
|
|
|
copy %PPSSPP_ROOT%\README.md /Y
|
|
|
|
|
|
|
|
copy %PPSSPP_ROOT%\%DEBUG_X64% /Y
|
|
|
|
|
|
|
|
copy %PPSSPP_ROOT%\%RELEASE_X64% /Y
|
|
|
|
|
|
|
|
:Quit
|
|
|
|
pause
|