OSDN Git Service

Added support for Visual Studio 2012. Proper assembly references should help monodevelop
authorLatif Khalifa <latifer@streamgrid.net>
Sun, 17 Feb 2013 01:17:18 +0000 (02:17 +0100)
committerLatif Khalifa <latifer@streamgrid.net>
Sun, 17 Feb 2013 01:17:18 +0000 (02:17 +0100)
Radegast/prebuild.exe
prebuild.xml
runprebuild2012.bat [new file with mode: 0644]

index 43858a7..d37d1a6 100755 (executable)
Binary files a/Radegast/prebuild.exe and b/Radegast/prebuild.exe differ
index f2f1798..371bc05 100644 (file)
       <Reference name="OpenMetaverse.StructuredData" localCopy="false"/>
       <Reference name="OpenMetaverse.Rendering.Meshmerizer" localCopy="false" />
 
-      <Reference name="assemblies/fmodex-dotnet.dll" localCopy="true"/>
-      <Reference name="assemblies/OpenTK.dll" localCopy="true"/>
-      <Reference name="assemblies/OpenTK.GLControl.dll" localCopy="true" />
-      <Reference name="assemblies/Tools.dll" localCopy="true" />
-      <Reference name="assemblies/log4net.dll" localCopy="true" />
-      <Reference name="assemblies/CommandLine.dll" localCopy="true" />
-      <Reference name="assemblies/XMLRPC.dll" localCopy="true" />
+      <Reference name="fmodex-dotnet" path="assemblies" localCopy="true"/>
+      <Reference name="OpenTK" path="assemblies" localCopy="true"/>
+      <Reference name="OpenTK.GLControl" path="assemblies" localCopy="true" />
+      <Reference name="Tools" path="assemblies" localCopy="true" />
+      <Reference name="log4net" path="assemblies" localCopy="true" />
+      <Reference name="CommandLine" path="assemblies" localCopy="true" />
+      <Reference name="XMLRPC" path="assemblies" localCopy="true" />
 
       <Files>
         <Match path="." pattern="*.cs" recurse="true" subType="Code">
       <Reference name="OpenMetaverseTypes" localCopy="false"/>
       <Reference name="OpenMetaverse.StructuredData"/>
       <Reference name="System.Windows.Forms" localCopy="false"/>
-      <Reference name="assemblies/AIMLbot.dll" localCopy="true" />
+      <Reference name="AIMLbot" path="assemblies" localCopy="true" />
       <Reference name="Radegast.exe" localCopy="false" />
       <Files>
         <Match path="." pattern="*.cs" recurse="true" subType="Code">
 
       <Reference name="Radegast.exe" localCopy="false" />
       <Reference name="Radegast.Plugin.Speech" />
-      <Reference name="Assemblies/Monobjc.dll" />
-      <Reference name="Assemblies/Monobjc.Cocoa.dll" />
+      <Reference name="Assemblies/Monobjc" path="Assemblies" />
+      <Reference name="Assemblies/Monobjc.Cocoa" path="Assemblies" />
 
       <Reference name="Radegast.exe" />
       <Reference name="System" />
diff --git a/runprebuild2012.bat b/runprebuild2012.bat
new file mode 100644 (file)
index 0000000..b7c5246
--- /dev/null
@@ -0,0 +1,81 @@
+@echo off
+::
+:: Prebuild generator for the Radegast
+::
+:: Command Line Options:
+:: (none)            - create solution/project files and create compile.bat file to build solution
+:: msbuild           - Create project files, compile solution
+:: msbuild runtests  - create project files, compile solution, run unit tests
+:: msbuild docs      - create project files, compile solution, build API documentation
+:: msbuild docs dist - Create project files, compile solution, run unit tests, build api documentation, create binary zip
+::                   - and exe installer
+::
+:: nant                     - Create project files, run nant to compile solution
+:: nant runtests     - Create project files, run nant to compile solution, run unit tests
+::
+
+echo ##########################################
+echo creating prebuild files for: vs2010
+echo Parameters: %1 %2
+echo ##########################################
+
+if not exist bin mkdir bin
+
+:: run prebuild to generate solution/project files from prebuild.xml configuration file
+Radegast\prebuild.exe /target vs2012
+
+:: build compile.bat file based on command line parameters
+echo @echo off > compile.bat
+if(.%1)==(.) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\msbuild Radegast.sln >> compile.bat
+
+if(.%1)==(.msbuild) echo echo ==== COMPILE BEGIN ==== >> compile.bat
+if(.%1)==(.msbuild) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release Radegast.sln >> compile.bat
+if(.%1)==(.msbuild) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
+
+if(.%1)==(.nant) echo nant >> compile.bat
+if(.%1)==(.nant) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
+
+if(.%3)==(.docs) echo echo ==== GENERATE DOCUMENTATION BEGIN ==== >> compile.bat
+if(.%2)==(.docs) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release docs\Radegast.shfbproj >> compile.bat
+if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
+if(.%2)==(.docs) echo 7z.exe a -tzip docs\documentation.zip docs\trunk >> compile.bat
+if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
+
+if(.%2)==(.runtests) echo echo ==== UNIT TESTS BEGIN ==== >> compile.bat
+if(.%2)==(.runtests) echo nunit-console bin\Radegast.Tests.dll /exclude:Network /nodots /labels /xml:testresults.xml >> compile.bat
+
+if(.%2)==(.runtests) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
+
+if not (.%2)==(.dist) goto NODIST
+echo echo ==== GENERATE DISTRIBUTION BEGIN ==== >> compile.bat
+copy Radegast\radegast.nsi bin
+echo del /q Radegast-*-installer.exe >> compile.bat
+echo del /q radegast-latest.zip >> compile.bat
+
+if not exist "%PROGRAMFILES%\NSIS\Unicode\makensis.exe" goto NOUNINSIS
+echo "%PROGRAMFILES%\NSIS\Unicode\makensis.exe" bin\radegast.nsi >> compile.bat
+goto NONSIS
+:NOUNINSIS
+
+if not exist "%PROGRAMFILES%\NSIS\makensis.exe" goto NONSIS
+echo "%PROGRAMFILES%\NSIS\makensis.exe" bin\radegast.nsi >> compile.bat
+:NONSIS
+
+echo cd bin >> compile.bat
+echo 7z.exe a -r -tzip ..\radegast-latest.zip *.* >> compile.bat
+echo cd .. >> compile.bat
+
+:NODIST
+
+echo :SUCCESS >> compile.bat
+echo echo Build Successful! >> compile.bat
+echo exit /B 0 >> compile.bat
+echo :FAIL >> compile.bat
+echo echo Build Failed, check log for reason >> compile.bat
+echo exit /B 1 >> compile.bat
+
+:: perform the appropriate action
+if(.%1)==(.msbuild) compile.bat
+if(.%1)==(.nant) compile.bat
+if(.%1)==(.dist) compile.bat
+