[d6cb62]: Build.Debug.bat  Maximize  Restore  History

Repo status: analyzing...

Download this file

128 lines (114 with data), 4.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@ECHO OFF
cls
COLOR 1B
rem ----PURPOSE----
rem - Create a working XBMC build with a single click
rem ---------------------------------------------
rem Config
rem If you get an error that Visual studio was not found, SET your path for VSNET main executable.
rem ONLY needed if you have a very old bios, SET the path for xbepatch. Not needed otherwise.
rem If Winrar isn't installed under standard programs, SET the path for WinRAR's (freeware) rar.exe
rem and finally set the options for the final rar.
rem ---------------------------------------------
rem Remove 'rem' from 'web / python' below to copy these to the BUILD directory.
rem ---------------------------------------------
TITLE XBMC Build Prepare Script
ECHO Wait while preparing the build.
ECHO ------------------------------
rem CONFIG START
IF "%VS71COMNTOOLS%"=="" (
set NET="%ProgramFiles%\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.com"
) ELSE (
set NET="%VS71COMNTOOLS%\..\IDE\devenv.com"
)
IF NOT EXIST %NET% (
set DIETEXT=Visual Studio .NET 2003 was not found.
goto DIE
)
set OPTS=xbmc.sln /build debug
set CLEAN=xbmc.sln /clean debug
set XBE=debug\default.xbe
set XBE_PATCH=tools\xbepatch\xbepatch.exe
set RAR="%ProgramFiles%\Winrar\rar.exe"
set RAROPS=a -r -idp -inul -m5 XBMC.rar BUILD
rem CONFIG END
rem ---------------------------------------------
rem check for existing xbe
rem ---------------------------------------------
IF EXIST debug\default.xbe (
goto XBE_EXIST
)
goto COMPILE
:XBE_EXIST
ECHO ------------------------------
ECHO Found a previous Compiled XBE!
ECHO [Y] a new XBE will be compiled for the BUILD
ECHO [N] the existing XBE will be used for the BUILD
ECHO ------------------------------
set /P XBMC_COMPILE_ANSWER=Compile a new XBE? [y/n]
if /I %XBMC_COMPILE_ANSWER% NEQ y goto MAKE_BUILD
if /I %XBMC_COMPILE_ANSWER% NEQ n goto COMPILE
:COMPILE
ECHO Compiling Solution...
%NET% %CLEAN%
del debug\xbmc.map
%NET% %OPTS%
IF NOT EXIST %XBE% (
set DIETEXT=Default.xbe failed to build! See .\debug\BuildLog.htm for details.
goto DIE
)
ECHO Done!
ECHO ------------------------------
GOTO MAKE_BUILD
:MAKE_BUILD
ECHO Copying files...
ECHO - XBE Patching %XBE%
%XBE_PATCH% %XBE%
ECHO - Patching Done!
rmdir BUILD /S /Q
md BUILD
Echo .svn>exclude.txt
Echo Thumbs.db>>exclude.txt
Echo Desktop.ini>>exclude.txt
Echo dsstdfx.bin>>exclude.txt
Echo exclude.txt>>exclude.txt
copy %XBE% BUILD
xcopy UserData BUILD\UserData /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy *.txt BUILD /EXCLUDE:exclude.txt
rem xcopy *.xml BUILD\
cd "skin\Project Mayhem III"
CALL build.bat
cd ..\..
xcopy "skin\Project Mayhem III\BUILD\Project Mayhem III" "BUILD\skin\Project Mayhem III" /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy credits BUILD\credits /Q /I /Y /EXCLUDE:exclude.txt
xcopy language BUILD\language /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy screensavers BUILD\screensavers /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy visualisations BUILD\visualisations /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy system BUILD\system /E /Q /I /Y /EXCLUDE:exclude.txt
rem %rar% x web\Project_Mayhem_webserver*.rar build\web\
xcopy media BUILD\media /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy sounds BUILD\sounds /E /Q /I /Y /EXCLUDE:exclude.txt
del exclude.txt
ECHO ------------------------------
IF NOT EXIST %RAR% (
ECHO WinRAR not installed! Skipping .rar compression...
) ELSE (
ECHO Compressing build to XBMC.rar file...
%RAR% %RAROPS%
)
ECHO ------------------------------
ECHO Build Succeeded!
GOTO VIEWLOG
:DIE
ECHO !-!-!-!-!-!-!-!-!-!-!-!-!-!-!-
set DIETEXT=ERROR: %DIETEXT%
echo %DIETEXT%
:VIEWLOG
set /P XBMC_BUILD_ANSWER=View the build log in your HTML browser? [y/n]
if /I %XBMC_BUILD_ANSWER% NEQ y goto END
start /D"%~dp0debug" BuildLog.htm"
goto END
:END
set XBMC_BUILD_ANSWER=
ECHO Press any key to exit...
pause > NUL

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks