Previous 199869 Revisions Next

r32562 Monday 6th October, 2014 at 10:34:47 UTC by Miodrag Milanović
Update of build batch and svn default configuration
[/build]build.cmd svn-config.reg

build/build.cmd
r32561r32562
8282 
8383 
8484@rem --- perform validation steps
85set VALIDATED=0
86call :dovalidate
85rem Uncomment next line for doing validation
86rem set VALIDATED=0
87rem call :dovalidate
88set VALIDATED=1
8789if "%VALIDATED%"=="0" goto :eof
8890 
8991 
r32561r32562
133135set DSTBRANCH=mame%2
134136set FINALZIP=mame%2s
135137set FINALBINZIP=mame%2b
138set FINALBINZIP_MESS=mess%2b
136139set TEMP=%2
137140set VERSION=%temp:~0,1%.%temp:~1%
138141 
r32561r32562
150153 
151154 
152155@rem --- perform validation steps
153set VALIDATED=0
154call :dovalidate
156rem Uncomment next lines for doing validation
157rem set VALIDATED=0
158rem call :dovalidate
159set VALIDATED=1
155160if "%VALIDATED%"=="0" goto :eof
156161 
157162 
158163@rem --- all systems go, create the branch
159164@echo Creating target branch %DESTBRANCH%....
160if "%TEST%" == "" svn copy svn://dspnet.fr/mame/trunk -r %REVISION% svn://dspnet.fr/mame/tags/%DSTBRANCH% -m "MAME %VERSION% tag"
165svn copy svn://dspnet.fr/mame/trunk -r %REVISION% svn://dspnet.fr/mame/tags/%DSTBRANCH% -m "MAME %VERSION% tag"
161166 
162167 
163168@rem --- export the tree for building
164169:destexistsfull
165170@echo Checking out a temp copy....
166if exist tempbuild rd /s/q tempbuild
167svn export svn://dspnet.fr/mame/tags/%DSTBRANCH% tempbuild %NULLOUT%
171if "%RESUME%"=="0" if exist tempbuild rd /s/q tempbuild
172if "%RESUME%"=="0" svn export svn://dspnet.fr/mame/tags/%DSTBRANCH% tempbuild %NULLOUT%
168173 
174@rem goto :createpackage
169175 
170176@rem --- build the debug version
171177@echo Building debug version....
r32561r32562
183189set SYMLEVEL=1
184190set OSD=
185191pushd tempbuild
186call :performbuild mamed windowsd || goto :eof
192call :performbuild mamed windowsd messd || goto :eof
187193popd
188194 
189195 
r32561r32562
200206set SYMLEVEL=1
201207set SUFFIX=
202208pushd tempbuild
203call :performbuild mame windows || goto :eof
209call :performbuild mame windows mess|| goto :eof
204210popd
205211 
206212 
r32561r32562
218224set SYMLEVEL=1
219225set SUFFIX=pp
220226pushd tempbuild
221call :performbuild mamepp windowspp || goto :eof
227call :performbuild mamepp windowspp messpp || goto :eof
222228popd
223229 
224230 
r32561r32562
237243set SYMLEVEL=1
238244set SUFFIX=
239245pushd tempbuild
240call :performbuild mame64 windows64 || goto :eof
246call :performbuild mame64 windows64 mess64 || goto :eof
241247popd
242248 
243249 
r32561r32562
248254 
249255 
250256@rem --- copy in the whatsnew file
251rem copy %WHATSNEW% tempexport\whatsnew.txt
257copy %WHATSNEW% tempexport\whatsnew.txt
258copy %MESSNEW% tempexport\messnew.txt
252259 
253260 
254261@rem --- now package the results
r32561r32562
2652727za a -mpass=4 -mfb=255 -y -tzip %FINALZIP%.zip mame.zip %NULLOUT%
266273del mame.zip
267274 
268 
275:createpackage
269276@rem --- now build the official binary
270277@echo Building official binary....
271call :buildbinary mame %FINALBINZIP%.exe windows
278call :buildbinary mame %FINALBINZIP%.exe windows 1
279call :buildbinary mess %FINALBINZIP_MESS%.exe windows 2
272280 
273281@echo Building official debug binary....
274call :buildbinary mamed %FINALBINZIP%_debug.exe windowsd
282call :buildbinary mamed %FINALBINZIP%_debug.exe windowsd 1
283call :buildbinary messd %FINALBINZIP_MESS%_debug.exe windowsd 2
275284 
276285@echo Building official I686 binary....
277call :buildbinary mamepp %FINALBINZIP%_i686.exe windowspp
286call :buildbinary mamepp %FINALBINZIP%_i686.exe windowspp 1
287call :buildbinary messpp %FINALBINZIP_MESS%_i686.exe windowspp 2
278288 
279289@echo Building official 64-bit binary....
280call :buildbinary mame64 %FINALBINZIP%_64bit.exe windows64
290call :buildbinary mame64 %FINALBINZIP%_64bit.exe windows64 1
291call :buildbinary mess64 %FINALBINZIP_MESS%_64bit.exe windows64 2
281292 
282293goto :eof
283294 
r32561r32562
295306if exist %2 del %2
296307mkdir tempbin
297308pushd tempbin
309if "%4"=="2" copy ..\%MESSNEW% messnew.txt
298310copy ..\%WHATSNEW% whatsnew.txt
299311copy ..\tempbuild\%1.exe
300312copy ..\tempbuild\%1.sym
r32561r32562
305317copy ..\tempbuild\obj\%3\jedutil.exe
306318copy ..\tempbuild\obj\%3\ledutil.exe
307319copy ..\tempbuild\obj\%3\unidasm.exe
320copy ..\tempbuild\obj\%3\nltool.exe 
308321mkdir docs
309322copy ..\tempbuild\docs\*.* docs
310323mkdir hash
311copy ..\tempbuild\hash\*.* hash
324if "%4"=="1" copy ..\tempbuild\hash\*.dtd hash
325if "%4"=="1" copy ..\tempbuild\hash\megatech.xml hash
326if "%4"=="1" copy ..\tempbuild\hash\neogeo.xml hash
327if "%4"=="1" copy ..\tempbuild\hash\vectrex.xml hash
328if "%4"=="1" copy ..\tempbuild\hash\stv.xml hash 
329if "%4"=="2" copy ..\tempbuild\hash\*.* hash
312330mkdir hlsl
313331copy ..\tempbuild\hlsl\*.* hlsl
332mkdir web
333copy ..\tempbuild\web\*.* web
334mkdir web\css
335copy ..\tempbuild\web\css\*.* web\css
336mkdir web\css\images
337copy ..\tempbuild\web\css\images\*.* web\css\images
338mkdir web\images
339copy ..\tempbuild\web\images\*.* web\images
340mkdir web\js
341copy ..\tempbuild\web\js\*.* web\js
342mkdir nl_examples
343copy ..\tempbuild\nl_examples\*.* nl_examples
3143447za x ..\mamedirs.zip
3153457za a -mx=9 -y -r -t7z -sfx7z.sfx ..\%2
316346popd
r32561r32562
332362@rem --- First cleanup old files
333363if "%RESUME%"=="0" rd /s/q obj\%2
334364if exist %1.exe del %1.exe
365if exist %3.exe del %3.exe
335366if exist chdman.exe del chdman.exe
336367if exist ldverify.exe del ldverify.exe
337368if exist ldresample.exe del ldresample.exe
r32561r32562
339370if exist jedutil.exe del jedutil.exe
340371if exist ledutil.exe del ledutil.exe
341372if exist unidasm.exe del unidasm.exe
373if exist nltool.exe del nltool.exe
342374 
343 
344375@rem --- Do the build
345@echo make buildtools %~3 %~4 %~5 %~6
346make buildtools %~3 %~4 %~5 %~6 || goto :builderror %1
347@echo make all %MAKEPARAMS% %~3 %~4 %~5 %~6
348make all %MAKEPARAMS% %~3 %~4 %~5 %~6 || goto :builderror %1
376@echo make buildtools %~4 %~5 %~6 %~7
377make buildtools %~4 %~5 %~6 %~7 || goto :builderror %1
378@echo make all %MAKEPARAMS% %~4 %~5 %~6 %~7
379make all %MAKEPARAMS% %~4 %~5 %~6 %~7 || goto :builderror %1
380@echo make TARGET=mess all %MAKEPARAMS% %~4 %~5 %~6 %~7
381make all TARGET=mess %MAKEPARAMS% %~4 %~5 %~6 %~7 || goto :builderror %1
349382if exist %1.exe strip -s %1.exe
383if exist %3.exe strip -s %3.exe
350384 
351385 
352386@rem --- Stash the specific binaries
r32561r32562
357391move /y jedutil.exe obj\%2\
358392move /y ledutil.exe obj\%2\
359393move /y unidasm.exe obj\%2
394move /y nltool.exe obj\%2\
360395 
361396goto :eof
362397 
build/svn-config.reg
r32561r32562
1010"*.xml"="svn:mime-type=text/xml;svn:eol-style=native"
1111"*.hsi"="svn:mime-type=text/plain;svn:eol-style=native"
1212"*.py"="svn:mime-type=text/plain;svn:eol-style=native"
13"*.hpp"="svn:mime-type=text/plain;svn:eol-style=native"
14"*.cpp"="svn:mime-type=text/plain;svn:eol-style=native"
15"*.inl"="svn:mime-type=text/plain;svn:eol-style=native"
16"*.inc"="svn:mime-type=text/plain;svn:eol-style=native"
17"*.js"="svn:mime-type=text/javascript;svn:eol-style=native"
18"*.css"="svn:mime-type=text/css;svn:eol-style=native"
19"*.html"="svn:mime-type=text/html;svn:eol-style=native"
1320"makefile"="svn:mime-type=text/plain;svn:eol-style=native"
1421"*.png"="svn:mime-type=image/png"
22"*.sh"="svn:mime-type=text/plain;svn:eol-style=native;"
23"*.sc"="svn:mime-type=text/plain;svn:eol-style=native;"
24"*.mm"="svn:mime-type=text/plain;svn:eol-style=native;"
25"*.patch"="svn:mime-type=text/plain;svn:eol-style=native;"
1526
1627[HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config\miscellany]
1728"enable-auto-props"="yes"

Previous 199869 Revisions Next


© 1997-2024 The MAME Team