* Added Nant files - but alas, they're borken due to prebuild non-feature-completedness.

* Read STATE_OF_PREBUILD for more info.
zircon
lbsa71 2007-03-20 23:57:37 +00:00
parent 37c549f319
commit 8e92daabf7
13 changed files with 468 additions and 12 deletions

View File

@ -0,0 +1,34 @@
<?xml version="1.0" ?>
<project name="OpenSim.Config.SimConfigDb4o" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AssemblyInfo.cs" />
<include name="./DbSimConfig.cs" />
<include name="./MapStorage.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
<include name="System.Data.dll.dll" />
<include name="System.Xml.dll.dll" />
<include name="../../bin/libsecondlife.dll" />
<include name="../../bin/Db4objects.Db4o.dll" />
<include name="../../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,50 @@
<?xml version="1.0" ?>
<project name="OpenSim.Framework" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AgentCiruitData.cs" />
<include name="./AssetBase.cs" />
<include name="./BlockingQueue.cs" />
<include name="./HeightMapGenHills.cs" />
<include name="./IAssetServer.cs" />
<include name="./IConfig.cs" />
<include name="./IGridServer.cs" />
<include name="./ILocalStorage.cs" />
<include name="./Inventory.cs" />
<include name="./IUserServer.cs" />
<include name="./LocalGridBase.cs" />
<include name="./Login.cs" />
<include name="./LoginService.cs" />
<include name="./NeighbourInfo.cs" />
<include name="./PrimData.cs" />
<include name="./RemoteGridBase.cs" />
<include name="./SimProfile.cs" />
<include name="./SimProfileBase.cs" />
<include name="./UserProfile.cs" />
<include name="./UserProfileManager.cs" />
<include name="./UserProfileManagerBase.cs" />
<include name="./Util.cs" />
<include name="./Properties/AssemblyInfo.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll.dll" />
<include name="System.Xml.dll.dll" />
<include name="../bin/libsecondlife.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,28 @@
<?xml version="1.0" ?>
<project name="OpenSim.Framework.Console" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AssemblyInfo.cs" />
<include name="./ConsoleBase.cs" />
<include name="./MainConsole.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" ?>
<project name="OpenSim.GridInterfaces.Local" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AssemblyInfo.cs" />
<include name="./LocalAssetServer.cs" />
<include name="./LocalGridServer.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
<include name="System.Xml.dll.dll" />
<include name="../../bin/Db4objects.Db4o.dll" />
<include name="../../bin/libsecondlife.dll" />
<include name="../../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,32 @@
<?xml version="1.0" ?>
<project name="OpenSim.GridInterfaces.Remote" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AssemblyInfo.cs" />
<include name="./RemoteAssetServer.cs" />
<include name="./RemoteGridServer.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
<include name="System.Xml.dll.dll" />
<include name="../../bin/libsecondlife.dll" />
<include name="../../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" ?>
<project name="OpenSim.Physics.BasicPhysicsPlugin" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AssemblyInfo.cs" />
<include name="./BasicPhysicsPlugin.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
<include name="../../bin/Axiom.MathLib.dll" />
<include name="../Manager/${build.dir}/OpenSim.Physics.Manager.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" ?>
<project name="OpenSim.Physics.Manager" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AssemblyInfo.cs" />
<include name="./PhysicsActor.cs" />
<include name="./PhysicsManager.cs" />
<include name="./PhysicsScene.cs" />
<include name="./PhysicsVector.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
<include name="System.Xml.dll.dll" />
<include name="../../bin/Axiom.MathLib.dll" />
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,30 @@
<?xml version="1.0" ?>
<project name="OpenSim.Physics.PhysXplugin" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AssemblyInfo.cs" />
<include name="./PhysXPlugin.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
<include name="../../bin/Axiom.MathLib.dll" />
<include name="../../bin/PhysX_Wrapper_Dotnet.dll" />
<include name="../Manager/${build.dir}/OpenSim.Physics.Manager.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,54 @@
<?xml version="1.0" ?>
<project name="OpenSim.RegionServer" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="exe" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.exe">
<sources failonempty="true">
<include name="./Grid.cs" />
<include name="./OpenSimApplication.cs" />
<include name="./OpenSimMain.cs" />
<include name="./OpenSimRoot.cs" />
<include name="./QueItem.cs" />
<include name="./SimClient.cs" />
<include name="./SimConsole.cs" />
<include name="./VersionInfo.cs" />
<include name="./Assets/AssetCache.cs" />
<include name="./Assets/InventoryCache.cs" />
<include name="./CAPS/SimHttp.cs" />
<include name="./types/Mesh.cs" />
<include name="./types/Triangle.cs" />
<include name="./UserServer/LocalUserProfileManager.cs" />
<include name="./UserServer/LoginServer.cs" />
<include name="./world/Avatar.cs" />
<include name="./world/Entity.cs" />
<include name="./world/Primitive.cs" />
<include name="./world/ScriptEngine.cs" />
<include name="./world/SurfacePatch.cs" />
<include name="./world/World.cs" />
<include name="./world/scripting/IScript.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
<include name="System.Xml.dll.dll" />
<include name="../bin/libsecondlife.dll" />
<include name="../bin/Axiom.MathLib.dll" />
<include name="../bin/Db4objects.Db4o.dll" />
<include name="../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
<include name="../OpenSim.Physics/Manager/${build.dir}/OpenSim.Physics.Manager.dll" />
<include name="../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" ?>
<project name="OpenSim.Storage.LocalStorageDb4o" default="build">
<target name="build">
<echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
<mkdir dir="${project::get-base-directory()}/${build.dir}" />
<csc target="library" debug="${build.debug}" unsafe="true" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
<sources failonempty="true">
<include name="./AssemblyInfo.cs" />
<include name="./Db4LocalStorage.cs" />
<include name="./UUIDQuery.cs" />
</sources>
<references basedir="${project::get-base-directory()}">
<lib>
<include name="${project::get-base-directory()}" />
</lib>
<include name="System.dll" />
<include name="System.Xml.dll.dll" />
<include name="../../bin/Db4objects.Db4o.dll" />
<include name="../../bin/libsecondlife.dll" />
<include name="../../OpenSim.Framework/${build.dir}/OpenSim.Framework.dll" />
<include name="../../OpenSim.Framework.Console/${build.dir}/OpenSim.Framework.Console.dll" />
</references>
<resources>
</resources>
</csc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failonerror="false" />
<delete dir="${obj.dir}" failonerror="false" />
</target>
<target name="doc" description="Creates documentation.">
</target>
</project>

89
OpenSim.build Normal file
View File

@ -0,0 +1,89 @@
<?xml version="1.0" ?>
<project name="OpenSim" default="build">
<echo message="Using '${nant.settings.currentframework}' Framework"/>
<property name="bin.dir" value="bin" />
<property name="obj.dir" value="obj" />
<property name="project.main.dir" value="${project::get-base-directory()}" />
<target name="Debug" description="">
<property name="project.config" value="Debug" />
<property name="build.debug" value="true" />
</target>
<property name="project.config" value="Release" />
<target name="Release" description="">
<property name="project.config" value="Release" />
<property name="build.debug" value="false" />
</target>
<target name="net-1.1" description="Sets framework to .NET 1.1">
<property name="nant.settings.currentframework" value="net-1.1" />
</target>
<target name="net-2.0" description="Sets framework to .NET 2.0">
<property name="nant.settings.currentframework" value="net-2.0" />
</target>
<target name="mono-2.0" description="Sets framework to mono 2.0">
<property name="nant.settings.currentframework" value="mono-2.0" />
</target>
<target name="mono-1.0" description="Sets framework to mono 1.0">
<property name="nant.settings.currentframework" value="mono-1.0" />
</target>
<target name="init" description="">
<call target="${project.config}" />
<sysinfo />
<echo message="Platform ${sys.os.platform}" />
<property name="build.dir" value="${bin.dir}/${project.config}" />
</target>
<target name="clean" description="">
<echo message="Deleting all builds from all configurations" />
<nant buildfile="../zircon/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="clean" />
<nant buildfile="../zircon/OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="clean" />
<nant buildfile="../zircon/OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="clean" />
<nant buildfile="../zircon/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="clean" />
<nant buildfile="../zircon/OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="clean" />
<nant buildfile="../zircon/OpenSim.Framework/OpenSim.Framework.dll.build" target="clean" />
<nant buildfile="../zircon/OpenSim.Physics/PhysXplugin/OpenSim.Physics.PhysXplugin.dll.build" target="clean" />
<nant buildfile="../zircon/OpenSim.RegionServer/OpenSim.RegionServer.exe.build" target="clean" />
<nant buildfile="../zircon/OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="clean" />
<nant buildfile="../zircon/OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="clean" />
</target>
<target name="build" depends="init" description="">
<nant buildfile="../zircon/OpenSim.Framework/OpenSim.Framework.dll.build" target="build" />
<nant buildfile="../zircon/OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="build" />
<nant buildfile="../zircon/OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="build" />
<nant buildfile="../zircon/OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="build" />
<nant buildfile="../zircon/OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="build" />
<nant buildfile="../zircon/OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="build" />
<nant buildfile="../zircon/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="build" />
<nant buildfile="../zircon/OpenSim.Physics/PhysXplugin/OpenSim.Physics.PhysXplugin.dll.build" target="build" />
<nant buildfile="../zircon/OpenSim.RegionServer/OpenSim.RegionServer.exe.build" target="build" />
<nant buildfile="../zircon/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="build" />
</target>
<target name="build-release" depends="Release, init, build" description="Builds in Release mode" />
<target name="build-debug" depends="Debug, init, build" description="Builds in Debug mode" />
<target name="doc" depends="build-release">
<foreach item="File" property="filename">
<in>
<items>
<include name="**/*.build" />
<exclude name="${project::get-buildfile-path()}" />
</items>
</in>
<do>
<echo message="${filename}" />
<nant buildfile="${filename}" target="doc" />
</do>
</foreach>
</target>
</project>

11
STATE_OF_PREBUILD.txt Normal file
View File

@ -0,0 +1,11 @@
Prebuild seems to be quite a few features short of complete. We'll have to look into fixing them or getting patches.
* vs2005 builds fine except for not honouring localCopy=False - I have a fix for like half the cases
* Nant is borked, as the nant target doesn't honour Output redirection, which causes everything to land in {project}/bin/Debug
* Also, we have the System.Xml / System.dll.dll - issues in Nant. Further digging needed.
Now, the good news is that prebuild is very straight forward, so we should be able to fix what we need in the tool and submit the changes to the Prebuild team.
Be my guest, anybody!
/lbsa71

View File

@ -72,7 +72,7 @@
</Configuration>
<ReferencePath>../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System" localCopy="False"/>
<Files>
<Match pattern="*.cs" recurse="true"/>
</Files>
@ -91,10 +91,10 @@
</Configuration>
<ReferencePath>../../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System.Xml.dll"/>
<Reference name="Axiom.MathLib.dll"/>
<Reference name="OpenSim.Framework.Console"/>
<Reference name="System" localCopy="False"/>
<Reference name="System.Xml.dll" localCopy="False" />
<Reference name="Axiom.MathLib.dll" localCopy="False"/>
<Reference name="OpenSim.Framework.Console" localCopy="False"/>
<Files>
<Match pattern="*.cs" recurse="false"/>
</Files>
@ -114,7 +114,7 @@
</Configuration>
<ReferencePath>../../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System" localCopy="False"/>
<Reference name="System.Data.dll"/>
<Reference name="System.Xml.dll"/>
<Reference name="libsecondlife.dll"/>
@ -140,7 +140,7 @@
</Configuration>
<ReferencePath>../../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System" localCopy="False"/>
<Reference name="System.Xml.dll"/>
<Reference name="Db4objects.Db4o.dll"/>
<Reference name="libsecondlife.dll"/>
@ -164,7 +164,7 @@
</Configuration>
<ReferencePath>../../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System" localCopy="False"/>
<Reference name="System.Xml.dll"/>
<Reference name="libsecondlife.dll"/>
<Reference name="OpenSim.Framework"/>
@ -188,7 +188,7 @@
</Configuration>
<ReferencePath>../../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System" localCopy="False"/>
<Reference name="Axiom.MathLib.dll" localCopy="False"/>
<Reference name="OpenSim.Physics.Manager" localCopy="False"/>
<Files>
@ -209,7 +209,7 @@
</Configuration>
<ReferencePath>../../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System" localCopy="False"/>
<Reference name="Axiom.MathLib.dll" localCopy="False"/>
<Reference name="PhysX_Wrapper_Dotnet.dll" localCopy="False"/>
<Reference name="OpenSim.Physics.Manager" localCopy="False"/>
@ -232,7 +232,7 @@
</Configuration>
<ReferencePath>../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System" localCopy="False"/>
<Reference name="System.Xml.dll"/>
<Reference name="libsecondlife.dll"/>
<Reference name="Axiom.MathLib.dll"/>
@ -260,7 +260,7 @@
</Configuration>
<ReferencePath>../../bin/</ReferencePath>
<Reference name="System.dll"/>
<Reference name="System" localCopy="False"/>
<Reference name="System.Xml.dll"/>
<Reference name="Db4objects.Db4o.dll"/>
<Reference name="libsecondlife.dll"/>