corrade-vassal – Blame information for rev 1
?pathlinks?
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: vs2012 |
||
19 | echo Parameters: %1 %2 |
||
20 | echo ########################################## |
||
21 | |||
22 | :: run prebuild to generate solution/project files from prebuild.xml configuration file |
||
23 | bin\Prebuild.exe /target vs2012 |
||
24 | |||
25 | :: build compile.bat file based on command line parameters |
||
26 | echo @echo off > compile.bat |
||
27 | if(.%1)==(.) echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild OpenMetaverse.sln >> compile.bat |
||
28 | |||
29 | if(.%1)==(.msbuild) echo echo ==== COMPILE BEGIN ==== >> compile.bat |
||
30 | if(.%1)==(.msbuild) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release OpenMetaverse.sln >> compile.bat |
||
31 | if(.%1)==(.msbuild) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat |
||
32 | |||
33 | if(.%1)==(.nant) echo nant >> compile.bat |
||
34 | if(.%1)==(.nant) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat |
||
35 | |||
36 | if(.%2)==(.docs) echo echo ==== GENERATE DOCUMENTATION BEGIN ==== >> compile.bat |
||
37 | if(.%2)==(.docs) echo %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release docs\OpenMetaverse.shfbproj >> compile.bat |
||
38 | if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat |
||
39 | if(.%2)==(.docs) echo 7z.exe a -tzip docs\documentation.zip docs\trunk >> compile.bat |
||
40 | if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat |
||
41 | |||
42 | if(.%2)==(.runtests) echo echo ==== UNIT TESTS BEGIN ==== >> compile.bat |
||
43 | if(.%2)==(.runtests) echo nunit-console bin\OpenMetaverse.Tests.dll /exclude:Network /nodots /labels /xml:testresults.xml >> compile.bat |
||
44 | |||
45 | if(.%2)==(.runtests) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat |
||
46 | |||
47 | :: nsis compiler needs to be in path |
||
48 | if(.%3)==(.dist) echo echo ==== GENERATE DISTRIBUTION BEGIN ==== >> compile.bat |
||
49 | if(.%3)==(.dist) echo makensis.exe /DPlatform=test docs\OpenMetaverse-installer.nsi >> compile.bat |
||
50 | if(.%3)==(.dist) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat |
||
51 | if(.%3)==(.dist) echo 7z.exe a -tzip dist\openmetaverse-dist.zip @docs\distfiles.lst >> compile.bat |
||
52 | if(.%3)==(.dist) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat |
||
53 | |||
54 | echo :SUCCESS >> compile.bat |
||
55 | echo echo Build Successful! >> compile.bat |
||
56 | echo exit /B 0 >> compile.bat |
||
57 | echo :FAIL >> compile.bat |
||
58 | echo echo Build Failed, check log for reason >> compile.bat |
||
59 | echo exit /B 1 >> compile.bat |
||
60 | |||
61 | :: perform the appropriate action |
||
62 | if(.%1)==(.msbuild) compile.bat |
||
63 | if(.%1)==(.nant) compile.bat |
||
64 | if(.%1)==(.dist) compile.bat |
||
65 |