From 26db89ac898ce806c903169256f7d62da14f6dbb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 21 Apr 2013 22:15:49 +0200 Subject: [PATCH] (Xbox 1) Add rule so that Quake is compiled with a big stacksize in binary --- dist-scripts/xdk1-cores.sh | 9 ++++-- dist-scripts/xdk1_env_bigstack.bat | 51 ++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 dist-scripts/xdk1_env_bigstack.bat diff --git a/dist-scripts/xdk1-cores.sh b/dist-scripts/xdk1-cores.sh index 76ab5feeea..e50e064b96 100644 --- a/dist-scripts/xdk1-cores.sh +++ b/dist-scripts/xdk1-cores.sh @@ -14,6 +14,11 @@ mkdir -p ../msvc/RetroArch-Xbox1/Release_LTCG for f in *_xdk.lib ; do name=`echo "$f" | sed 's/\(_libretro\|\)_xdk.lib$//'` echo $name - cp -f "$f" ../msvc/RetroArch-Xbox1/Release_LTCG/libretro_xdk.lib - cmd.exe /k xdk1_env.bat $name + if [ $name = "tyrquake" ] ; then + cp -f "$f" ../msvc/RetroArch-Xbox1/Release_LTCG_BigStack/libretro_xdk.lib + cmd.exe /k xdk1_env_bigstack.bat $name + else + cp -f "$f" ../msvc/RetroArch-Xbox1/Release_LTCG/libretro_xdk.lib + cmd.exe /k xdk1_env.bat $name + fi done diff --git a/dist-scripts/xdk1_env_bigstack.bat b/dist-scripts/xdk1_env_bigstack.bat new file mode 100644 index 0000000000..e3d45f979a --- /dev/null +++ b/dist-scripts/xdk1_env_bigstack.bat @@ -0,0 +1,51 @@ +@SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE +@SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio .NET 2003 +@SET FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework +@SET FrameworkVersion=v1.1.4322 +@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1 +@rem Root of Visual Studio common files. + +@if "%VSINSTALLDIR%"=="" goto Usage +@if "%VCINSTALLDIR%"=="" set VCINSTALLDIR=%VSINSTALLDIR% + +@rem +@rem Root of Visual Studio ide installed files. +@rem +@set DevEnvDir=%VSINSTALLDIR% + +@rem +@rem Root of Visual C++ installed files. +@rem +@set MSVCDir=%VCINSTALLDIR%\VC7 + +@rem +@echo Setting environment for using Microsoft Visual Studio .NET 2003 tools. +@echo (If you have another version of Visual Studio or Visual C++ installed and wish +@echo to use its tools from the command line, run vcvars32.bat for that version.) +@rem + +@REM %VCINSTALLDIR%\Common7\Tools dir is added only for real setup. + +@set PATH=%DevEnvDir%;%MSVCDir%\BIN;%VCINSTALLDIR%\Common7\Tools;%VCINSTALLDIR%\Common7\Tools\bin\prerelease;%VCINSTALLDIR%\Common7\Tools\bin;%FrameworkSDKDir%\bin;%FrameworkDir%\%FrameworkVersion%;%PATH%; +@set INCLUDE=%MSVCDir%\ATLMFC\INCLUDE;%MSVCDir%\INCLUDE;%FrameworkSDKDir%\include;%INCLUDE%;%XDK%\xbox\include +@set LIB=%MSVCDir%\ATLMFC\LIB;%MSVCDir%\LIB;%MSVCDir%\PlatformSDK\lib;%XDK%\lib;%XDK%\xbox\lib;%LIB% + +@goto end + +:Usage + +@echo. VSINSTALLDIR variable is not set. +@echo. +@echo SYNTAX: %0 + +@goto end + +:end + +cd ../msvc/ +devenv /clean Release_LTCG_BigStack RetroArch-Xbox1.sln +devenv /build Release_LTCG_BigStack RetroArch-Xbox1.sln +copy RetroArch-Xbox1\Release_LTCG_BigStack\RetroArch.xbe RetroArch-Xbox1\%1.xbe +del RetroArch-Xbox1\Release_LTCG_BigStack\RetroArch.xbe +del RetroArch-Xbox1\Release_LTCG_BigStack\libretro_xdk.lib +exit