[4cef72]: Build.bat Maximize Restore History

Repo status: analyzing...

Download this file

Build.bat    191 lines (171 with data), 7.5 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
@ECHO OFF
CLS
COLOR 1B
TITLE XBMC Build Prepare Script
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 -------------------------------------------------------------
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_EXE=project\VS2003\XBMC_PC.sln /build "Release (SDL) Win32"
set CLEAN_EXE=project\VS2003\XBMC_PC.sln /clean "Release (SDL) Win32"
set EXE= "XBMC.exe"
set RAR="%ProgramFiles%\Winrar\rar.exe"
set RAR_ROOT=rar.exe
set RAROPS_EXE=a -r -idp -inul -m5 XBMC_PC.rar BUILD_WIN32
rem CONFIG END
rem -------------------------------------------------------------
ECHO ����������������������
ECHO ����������������������������������������� ������
ECHO ��������������������������������������������������� ���
ECHO ������������������������������������������������������ �
ECHO ������������������������������������������������������� �
ECHO ������������������������������������������������������� �
ECHO ���������� ��� ����� ��� ����� ����� �
ECHO ����������� ����� ����� ��� ���� ���� �� �������� �
ECHO ����������� ������ ������ � ������ ������ � ��������� �
ECHO ����������� ������� ������ � ������ ������ ��������� �
ECHO ���������� ������ ����� �� ������ ������ � ��������� �
ECHO ������� ���� ������ ����������������� �� �������
ECHO ���������������������������������������������������� �
ECHO ��������������������������������������������������� �
ECHO ������ �� � �� � � ������� �� �� � ���� �� �������� �
ECHO ����� �� � �� ��� � � ��� �� �� � ���� �� � �������
ECHO �������������������������������������������������
ECHO ��������������������������������������� ������
ECHO ����������������������������������������������
ECHO ���������������������������������������
ECHO ����������������������������
ECHO �����������������
ECHO ------------------------------------------------------------
ECHO XBMC prepare menu
ECHO ------------------------------------------------------------
ECHO [1] Build XBMC_WIN32 ( for Windows use)
ECHO ------------------------------------------------------------
set /P XBMC_COMPILE_ANSWER=Please enter the number you want to build! [1]:
if /I %XBMC_COMPILE_ANSWER% EQU 1 goto EXE_COMPILE
:EXE_COMPILE
rem ---------------------------------------------
rem check for existing xbe
rem ---------------------------------------------
IF EXIST %EXE% (
goto EXE_EXIST
)
goto COMPILE_EXE
:EXE_EXIST
ECHO ------------------------------------------------------------
ECHO Found a previous Compiled WIN32 EXE!
ECHO [1] a NEW EXE will be compiled for the BUILD_WIN32
ECHO [2] existing EXE will be updated (quick mode compile) for the BUILD_WIN32
ECHO [3] existing EXE will be used for the BUILD_WIN32
ECHO ------------------------------------------------------------
set /P XBMC_COMPILE_ANSWER=Compile a new EXE? [1/2/3]:
if /I %XBMC_COMPILE_ANSWER% EQU 1 goto COMPILE_EXE
if /I %XBMC_COMPILE_ANSWER% EQU 2 goto COMPILE_NO_CLEAN_EXE
if /I %XBMC_COMPILE_ANSWER% EQU 3 goto MAKE_BUILD_EXE
:COMPILE_EXE
ECHO Wait while preparing the build.
ECHO ------------------------------------------------------------
ECHO Cleaning Solution...
%NET% %CLEAN_EXE%
ECHO Compiling Solution...
%NET% %OPTS_EXE%
IF NOT EXIST %EXE% (
set DIETEXT="XBMC.EXE failed to build! See .\project\VS2003\Release (SDL)\BuildLog.htm for details."
goto DIE
)
ECHO Done!
ECHO ------------------------------------------------------------
GOTO MAKE_BUILD_EXE
:COMPILE_NO_CLEAN_EXE
ECHO Wait while preparing the build.
ECHO ------------------------------------------------------------
ECHO Compiling Solution...
%NET% %OPTS_EXE%
IF NOT EXIST %EXE% (
set DIETEXT="XBMC.EXE failed to build! See .\project\VS2003\Release (SDL)\BuildLog.htm for details."
goto DIE
)
ECHO Done!
ECHO ------------------------------------------------------------
GOTO MAKE_BUILD_EXE
:MAKE_BUILD_EXE
ECHO Copying files...
rmdir BUILD_WIN32 /S /Q
md BUILD_WIN32\Xbmc
Echo .svn>exclude.txt
Echo Thumbs.db>>exclude.txt
Echo Desktop.ini>>exclude.txt
Echo dsstdfx.bin>>exclude.txt
Echo exclude.txt>>exclude.txt
xcopy %EXE% BUILD_WIN32\Xbmc
xcopy UserData BUILD_WIN32\Xbmc\UserData /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy *.txt BUILD_WIN32 /EXCLUDE:exclude.txt
rem xcopy *.xml BUILD_WIN32\
rem xcopy project\VS2003\run_me_first.bat BUILD_WIN32 /EXCLUDE:exclude.txt
cd "skin\Project Mayhem III"
CALL build.bat
cd ..\..
xcopy "skin\Project Mayhem III\BUILD\Project Mayhem III" "BUILD_WIN32\Xbmc\skin\Project Mayhem III" /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy credits BUILD_WIN32\Xbmc\credits /Q /I /Y /EXCLUDE:exclude.txt
xcopy language BUILD_WIN32\Xbmc\language /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy screensavers BUILD_WIN32\Xbmc\screensavers /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy visualisations BUILD_WIN32\Xbmc\visualisations /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy system BUILD_WIN32\Xbmc\system /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy media BUILD_WIN32\Xbmc\media /E /Q /I /Y /EXCLUDE:exclude.txt
xcopy sounds BUILD_WIN32\Xbmc\sounds /E /Q /I /Y /EXCLUDE:exclude.txt
del exclude.txt
ECHO ------------------------------------------------------------
ECHO Build Succeeded!
GOTO RAR_EXE
:RAR_EXE
ECHO ------------------------------------------------------------
ECHO Compressing build to XBMC_WIN32.rar file...
ECHO ------------------------------------------------------------
IF EXIST %RAR% ( %RAR% %RAROPS_EXE%
) ELSE (
IF EXIST %RAR_ROOT% ( %RAR_ROOT% %RAROPS_EXE%
) ELSE (
ECHO WinRAR not installed! Skipping .rar compression...
)
)
ECHO ------------------------------------------------------------
GOTO VIEWLOG_EXE
:DIE
ECHO ------------------------------------------------------------
ECHO !-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-
ECHO ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR
ECHO !-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-
set DIETEXT=ERROR: %DIETEXT%
echo %DIETEXT%
ECHO ------------------------------------------------------------
:VIEWLOG_XBE
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"Release (SDL)" BuildLog.htm"
goto END
:VIEWLOG_EXE
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"project\VS2003\Release (SDL)" BuildLog.htm"
goto END
:END
set XBMC_BUILD_ANSWER=
ECHO Press any key to exit...
pause > NUL