Skip to content

Commit

Permalink
[WIN32] removed vs2008 occurrence because we don't support it anymore…
Browse files Browse the repository at this point in the history
… (project files are gone)
  • Loading branch information
WiSo committed Jan 29, 2011
1 parent 8b2ad50 commit 07d0eb9
Showing 1 changed file with 13 additions and 45 deletions.
58 changes: 13 additions & 45 deletions project/Win32BuildSetup/BuildSetup.bat
@@ -1,7 +1,6 @@
@ECHO OFF
rem ----Usage----
rem BuildSetup [vs2008|vs2010] [gl|dx] [clean|noclean]
rem vs2008 for compiling with visual studio 2008 (default)
rem BuildSetup [gl|dx] [clean|noclean]
rem vs2010 for compiling with visual studio 2010
rem gl for opengl build (default)
rem dx for directx build
Expand All @@ -23,7 +22,6 @@ SET target=dx
SET buildmode=ask
SET promptlevel=prompt
FOR %%b in (%1, %2, %3, %4, %5) DO (
IF %%b==vs2008 SET comp=vs2008
IF %%b==vs2010 SET comp=vs2010
IF %%b==dx SET target=dx
IF %%b==gl SET target=gl
Expand All @@ -34,15 +32,7 @@ FOR %%b in (%1, %2, %3, %4, %5) DO (
SET buildconfig=Release (OpenGL)
IF %target%==dx SET buildconfig=Release (DirectX)

IF %comp%==vs2008 (
IF "%VS90COMNTOOLS%"=="" (
set NET="%ProgramFiles%\Microsoft Visual Studio 9.0 Express\Common7\IDE\VCExpress.exe"
) ELSE IF EXIST "%VS90COMNTOOLS%\..\IDE\VCExpress.exe" (
set NET="%VS90COMNTOOLS%\..\IDE\VCExpress.exe"
) ELSE IF EXIST "%VS90COMNTOOLS%\..\IDE\devenv.exe" (
set NET="%VS90COMNTOOLS%\..\IDE\devenv.exe"
)
) ELSE IF %comp%==vs2010 (
IF %comp%==vs2010 (
IF "%VS100COMNTOOLS%"=="" (
set NET="%ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe"
) ELSE IF EXIST "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" (
Expand All @@ -53,23 +43,13 @@ IF %comp%==vs2008 (
)

IF NOT EXIST %NET% (
IF %comp%==vs2008 (
set DIETEXT=Visual Studio .NET 2008 Express was not found.
ELSE IF %comp%==vs2010 (
set DIETEXT=Visual Studio .NET 2010 Express was not found.
)
goto DIE
set DIETEXT=Visual Studio .NET 2010 Express was not found.
goto DIE
)

IF %comp%==vs2008 (
set OPTS_EXE="..\VS2008Express\XBMC for Windows.sln" /build "%buildconfig%"
set CLEAN_EXE="..\VS2008Express\XBMC for Windows.sln" /clean "%buildconfig%"
set EXE= "..\VS2008Express\XBMC\%buildconfig%\XBMC.exe"
) ELSE (
set OPTS_EXE="..\VS2010Express\XBMC for Windows.sln" /build "%buildconfig%"
set CLEAN_EXE="..\VS2010Express\XBMC for Windows.sln" /clean "%buildconfig%"
set EXE= "..\VS2010Express\XBMC\%buildconfig%\XBMC.exe"
)
set OPTS_EXE="..\VS2010Express\XBMC for Windows.sln" /build "%buildconfig%"
set CLEAN_EXE="..\VS2010Express\XBMC for Windows.sln" /clean "%buildconfig%"
set EXE= "..\VS2010Express\XBMC\%buildconfig%\XBMC.exe"

rem CONFIG END
rem -------------------------------------------------------------
Expand Down Expand Up @@ -126,7 +106,7 @@ IF %comp%==vs2008 (
ECHO Compiling XBMC...
%NET% %OPTS_EXE%
IF NOT EXIST %EXE% (
set DIETEXT="XBMC.EXE failed to build! See ..\vs2008express\XBMC\%buildconfig%\BuildLog.htm for details."
set DIETEXT="XBMC.EXE failed to build! See ..\vs2010express\XBMC\%buildconfig%\BuildLog.htm for details."
goto DIE
)
ECHO Done!
Expand All @@ -139,7 +119,7 @@ IF %comp%==vs2008 (
ECHO Compiling Solution...
%NET% %OPTS_EXE%
IF NOT EXIST %EXE% (
set DIETEXT="XBMC.EXE failed to build! See ..\vs2008express\XBMC\%buildconfig%\BuildLog\BuildLog.htm for details."
set DIETEXT="XBMC.EXE failed to build! See ..\vs2010express\XBMC\%buildconfig%\BuildLog\BuildLog.htm for details."
goto DIE
)
ECHO Done!
Expand Down Expand Up @@ -186,11 +166,7 @@ IF %comp%==vs2008 (
copy ..\..\LICENSE.GPL BUILD_WIN32\Xbmc > NUL
copy ..\..\known_issues.txt BUILD_WIN32\Xbmc > NUL
xcopy dependencies\*.* BUILD_WIN32\Xbmc /Q /I /Y /EXCLUDE:exclude.txt > NUL
IF %comp%==vs2008 (
xcopy vs_redistributable\vs2008\vcredist_x86.exe BUILD_WIN32\Xbmc /Q /I /Y /EXCLUDE:exclude.txt > NUL
) ELSE (
xcopy vs_redistributable\vs2010\vcredist_x86.exe BUILD_WIN32\Xbmc /Q /I /Y /EXCLUDE:exclude.txt > NUL
)
xcopy vs_redistributable\vs2010\vcredist_x86.exe BUILD_WIN32\Xbmc /Q /I /Y /EXCLUDE:exclude.txt > NUL
copy sources.xml BUILD_WIN32\Xbmc\userdata > NUL

xcopy ..\..\language BUILD_WIN32\Xbmc\language /E /Q /I /Y /EXCLUDE:exclude.txt > NUL
Expand Down Expand Up @@ -263,7 +239,7 @@ IF %comp%==vs2008 (
SET NSISExe=%NSISExePath%\makensis.exe
"%NSISExe%" /V1 /X"SetCompressor /FINAL lzma" /Dxbmc_root="%CD%\BUILD_WIN32" /Dxbmc_revision="%GIT_REV%" /Dxbmc_target="%target%" "XBMC for Windows.nsi"
IF NOT EXIST "%XBMC_SETUPFILE%" (
set DIETEXT=Failed to create %XBMC_SETUPFILE%.
set DIETEXT=Failed to create %XBMC_SETUPFILE%. NSIS installed?
goto DIE
)
ECHO ------------------------------------------------------------
Expand All @@ -285,23 +261,15 @@ IF %comp%==vs2008 (
IF %promptlevel%==noprompt (
goto END
)
IF %comp%==vs2008 (
SET log="%CD%\..\vs2008express\XBMC\%buildconfig%\objs\BuildLog.htm"
) ELSE (
SET log="%CD%\..\vs2010express\XBMC\%buildconfig%\objs\BuildLog.htm"
)
SET log="%CD%\..\vs2010express\XBMC\%buildconfig%\objs\BuildLog.htm"
IF NOT EXIST %log% goto END

copy %log% ./buildlog.html > NUL

set /P XBMC_BUILD_ANSWER=View the build log in your HTML browser? [y/n]
if /I %XBMC_BUILD_ANSWER% NEQ y goto END

IF %comp%==vs2008 (
SET log="%CD%\..\vs2008express\XBMC\%buildconfig%\objs\" BuildLog.htm
) ELSE (
SET log="%CD%\..\vs2010express\XBMC\%buildconfig%\objs\" BuildLog.htm
)
SET log="%CD%\..\vs2010express\XBMC\%buildconfig%\objs\" BuildLog.htm

start /D%log%
goto END
Expand Down

0 comments on commit 07d0eb9

Please sign in to comment.