corrade-vassal – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 vero 1 @echo off
2 ::
3 :: Prebuild generator for the OpenMetaverse Library
4 ::
5 :: Command Line Options:
6 :: (none) - create solution/project files and create compile.bat file to build solution
7 :: msbuild - Create project files, compile solution
8 :: msbuild runtests - create project files, compile solution, run unit tests
9 :: msbuild docs - create project files, compile solution, build API documentation
10 :: msbuild docs dist - Create project files, compile solution, run unit tests, build api documentation, create binary zip
11 :: - and exe installer
12 ::
13 :: nant - Create project files, run nant to compile solution
14 :: nant runtests - Create project files, run nant to compile solution, run unit tests
15 ::
16  
17 echo ##########################################
18 echo creating prebuild files for: vs2013
19 echo Parameters: %1 %2
20 echo ##########################################
21  
22 if %PROCESSOR_ARCHITECTURE%==x86 (
23 set MSBuild="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
24 ) else ( set MSBuild="%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe"
25 )
26  
27 :: run prebuild to generate solution/project files from prebuild.xml configuration file
28 bin\Prebuild.exe /target vs2012
29  
30 :: build compile.bat file based on command line parameters
31 echo @echo off > compile.bat
32 if(.%1)==(.) echo %MSBuild% OpenMetaverse.sln /p:Configuration=Release >> compile.bat
33  
34 if(.%1)==(.msbuild) echo echo ==== COMPILE BEGIN ==== >> compile.bat
35 if(.%1)==(.msbuild) echo %MSBuild% /p:Configuration=Release OpenMetaverse.sln >> compile.bat
36 if(.%1)==(.msbuild) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
37  
38 if(.%1)==(.nant) echo nant >> compile.bat
39 if(.%1)==(.nant) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
40  
41 if(.%2)==(.docs) echo echo ==== GENERATE DOCUMENTATION BEGIN ==== >> compile.bat
42 if(.%2)==(.docs) echo %MSBuild% /p:Configuration=Release docs\OpenMetaverse.shfbproj >> compile.bat
43 if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
44 if(.%2)==(.docs) echo 7z.exe a -tzip docs\documentation.zip docs\trunk >> compile.bat
45 if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
46  
47 if(.%2)==(.runtests) echo echo ==== UNIT TESTS BEGIN ==== >> compile.bat
48 if(.%2)==(.runtests) echo nunit-console bin\OpenMetaverse.Tests.dll /exclude:Network /nodots /labels /xml:testresults.xml >> compile.bat
49  
50 if(.%2)==(.runtests) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
51  
52 :: nsis compiler needs to be in path
53 if(.%3)==(.dist) echo echo ==== GENERATE DISTRIBUTION BEGIN ==== >> compile.bat
54 if(.%3)==(.dist) echo makensis.exe /DPlatform=test docs\OpenMetaverse-installer.nsi >> compile.bat
55 if(.%3)==(.dist) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
56 if(.%3)==(.dist) echo 7z.exe a -tzip dist\openmetaverse-dist.zip @docs\distfiles.lst >> compile.bat
57 if(.%3)==(.dist) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
58  
59 echo :SUCCESS >> compile.bat
60 echo echo Build Successful! >> compile.bat
61 echo exit /B 0 >> compile.bat
62 echo :FAIL >> compile.bat
63 echo echo Build Failed, check log for reason >> compile.bat
64 echo exit /B 1 >> compile.bat
65  
66 :: perform the appropriate action
67 if(.%1)==(.msbuild) compile.bat
68 if(.%1)==(.nant) compile.bat
69 if(.%1)==(.dist) compile.bat
70