Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[WIN32] removed vs2008 occurrence because we don't support it anymore…

… (project files are gone)
  • Loading branch information...
commit 07d0eb9dfd06e87d655d3725328084b4387df78b 1 parent 8b2ad50
@wsoltys wsoltys authored
Showing with 13 additions and 45 deletions.
  1. +13 −45 project/Win32BuildSetup/BuildSetup.bat
View
58 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
@@ -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
@@ -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" (
@@ -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 -------------------------------------------------------------
@@ -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!
@@ -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!
@@ -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
@@ -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 ------------------------------------------------------------
@@ -285,11 +261,7 @@ 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
@@ -297,11 +269,7 @@ IF %comp%==vs2008 (
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
Please sign in to comment.
Something went wrong with that request. Please try again.