<?xml version="1.0" ?>
<project name="OpenSim.Region.Environment" default="build">
    <target name="build">
        <echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
        <mkdir dir="${project::get-base-directory()}/${build.dir}" />
        <copy todir="${project::get-base-directory()}/${build.dir}" flatten="true">
            <fileset basedir="${project::get-base-directory()}">
            </fileset>
        </copy>
        <copy todir="${project::get-base-directory()}/${build.dir}">
            <fileset basedir=".">
            </fileset>
        </copy>
        <csc target="library" debug="${build.debug}" unsafe="False" warnaserror="False" define="TRACE;DEBUG" main="" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
            <resources prefix="OpenSim.Region.Environment" dynamicprefix="true" >
            </resources>
            <sources failonempty="true">
                <include name="InstantMessageReceiver.cs" />
                <include name="ModuleLoader.cs" />
                <include name="StorageManager.cs" />
                <include name="Interfaces/IAgentAssetTransactions.cs" />
                <include name="Interfaces/IAvatarFactory.cs" />
                <include name="Interfaces/ICommand.cs" />
                <include name="Interfaces/ICommandableModule.cs" />
                <include name="Interfaces/ICommander.cs" />
                <include name="Interfaces/IDynamicTextureManager.cs" />
                <include name="Interfaces/IEmailModule.cs" />
                <include name="Interfaces/IEstateDataStore.cs" />
                <include name="Interfaces/IEstateModule.cs" />
                <include name="Interfaces/IHttpRequests.cs" />
                <include name="Interfaces/IInventoryTransferModule.cs" />
                <include name="Interfaces/ILandChannel.cs" />
                <include name="Interfaces/ILandObject.cs" />
                <include name="Interfaces/IRegionDataStore.cs" />
                <include name="Interfaces/IRegionModule.cs" />
                <include name="Interfaces/ITerrain.cs" />
                <include name="Interfaces/ITerrainChannel.cs" />
                <include name="Interfaces/ITextureSender.cs" />
                <include name="Interfaces/IWindModule.cs" />
                <include name="Interfaces/IWorldComm.cs" />
                <include name="Interfaces/IXMLRPC.cs" />
                <include name="Interfaces/IXfer.cs" />
                <include name="Modules/Agent/AssetDownload/AssetDownloadModule.cs" />
                <include name="Modules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs" />
                <include name="Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs" />
                <include name="Modules/Agent/AssetTransaction/AssetTransactionModule.cs" />
                <include name="Modules/Agent/AssetTransaction/AssetXferUploader.cs" />
                <include name="Modules/Agent/TextureDownload/TextureDownloadModule.cs" />
                <include name="Modules/Agent/TextureDownload/TextureNotFoundSender.cs" />
                <include name="Modules/Agent/TextureDownload/UserTextureDownloadService.cs" />
                <include name="Modules/Agent/TextureSender/TextureSender.cs" />
                <include name="Modules/Agent/Xfer/XferModule.cs" />
                <include name="Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs" />
                <include name="Modules/Avatar/Chat/ChannelState.cs" />
                <include name="Modules/Avatar/Chat/ChatModule.cs" />
                <include name="Modules/Avatar/Chat/IRCBridgeModule.cs" />
                <include name="Modules/Avatar/Chat/IRCConnector.cs" />
                <include name="Modules/Avatar/Chat/RegionState.cs" />
                <include name="Modules/Avatar/Combat/CombatModule.cs" />
                <include name="Modules/Avatar/Concierge/ConciergeModule.cs" />
                <include name="Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs" />
                <include name="Modules/Avatar/Friends/FriendsModule.cs" />
                <include name="Modules/Avatar/Groups/GroupsModule.cs" />
                <include name="Modules/Avatar/InstantMessage/InstantMessageModule.cs" />
                <include name="Modules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs" />
                <include name="Modules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs" />
                <include name="Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs" />
                <include name="Modules/Avatar/Profiles/AvatarProfilesModule.cs" />
                <include name="Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs" />
                <include name="Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs" />
                <include name="Modules/ContentManagementSystem/AuraMetaEntity.cs" />
                <include name="Modules/ContentManagementSystem/BeamMetaEntity.cs" />
                <include name="Modules/ContentManagementSystem/CMController.cs" />
                <include name="Modules/ContentManagementSystem/CMEntityCollection.cs" />
                <include name="Modules/ContentManagementSystem/CMModel.cs" />
                <include name="Modules/ContentManagementSystem/CMView.cs" />
                <include name="Modules/ContentManagementSystem/ContentManagementEntity.cs" />
                <include name="Modules/ContentManagementSystem/ContentManagementModule.cs" />
                <include name="Modules/ContentManagementSystem/FileSystemDatabase.cs" />
                <include name="Modules/ContentManagementSystem/GitDatabase.cs" />
                <include name="Modules/ContentManagementSystem/IContentDatabase.cs" />
                <include name="Modules/ContentManagementSystem/MetaEntity.cs" />
                <include name="Modules/ContentManagementSystem/PointMetaEntity.cs" />
                <include name="Modules/ContentManagementSystem/SceneObjectGroupDiff.cs" />
                <include name="Modules/Framework/EventQueueGetModule.cs" />
                <include name="Modules/Framework/EventQueueHelper.cs" />
                <include name="Modules/Framework/InterfaceCommander/Commander.cs" />
                <include name="Modules/Framework/InterfaceCommander/CommanderTestModule.cs" />
                <include name="Modules/Grid/Interregion/IInterregionModule.cs" />
                <include name="Modules/Grid/Interregion/InterregionModule.cs" />
                <include name="Modules/Grid/Interregion/RemotingObject.cs" />
                <include name="Modules/InterGrid/OpenGridProtocolModule.cs" />
                <include name="Modules/Scripting/DynamicTexture/DynamicTextureModule.cs" />
                <include name="Modules/Scripting/EMailModules/EmailModule.cs" />
                <include name="Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs" />
                <include name="Modules/Scripting/LoadImageURL/LoadImageURLModule.cs" />
                <include name="Modules/Scripting/VectorRender/VectorRenderModule.cs" />
                <include name="Modules/Scripting/WorldComm/WorldCommModule.cs" />
                <include name="Modules/Scripting/XMLRPC/XMLRPCModule.cs" />
                <include name="Modules/World/Archiver/ArchiveConstants.cs" />
                <include name="Modules/World/Archiver/ArchiveReadRequest.cs" />
                <include name="Modules/World/Archiver/ArchiveWriteRequestExecution.cs" />
                <include name="Modules/World/Archiver/ArchiveWriteRequestPreparation.cs" />
                <include name="Modules/World/Archiver/ArchiverModule.cs" />
                <include name="Modules/World/Archiver/AssetsArchiver.cs" />
                <include name="Modules/World/Archiver/AssetsDearchiver.cs" />
                <include name="Modules/World/Archiver/AssetsRequest.cs" />
                <include name="Modules/World/Archiver/IRegionArchiver.cs" />
                <include name="Modules/World/Archiver/TarArchiveReader.cs" />
                <include name="Modules/World/Archiver/TarArchiveWriter.cs" />
                <include name="Modules/World/Estate/EstateManagementModule.cs" />
                <include name="Modules/World/Land/LandChannel.cs" />
                <include name="Modules/World/Land/LandManagementModule.cs" />
                <include name="Modules/World/Land/LandObject.cs" />
                <include name="Modules/World/NPC/NPCAvatar.cs" />
                <include name="Modules/World/NPC/NPCModule.cs" />
                <include name="Modules/World/Permissions/PermissionsModule.cs" />
                <include name="Modules/World/Serialiser/IFileSerialiser.cs" />
                <include name="Modules/World/Serialiser/IRegionSerialiser.cs" />
                <include name="Modules/World/Serialiser/SceneXmlLoader.cs" />
                <include name="Modules/World/Serialiser/SerialiseObjects.cs" />
                <include name="Modules/World/Serialiser/SerialiseTerrain.cs" />
                <include name="Modules/World/Serialiser/SerialiserModule.cs" />
                <include name="Modules/World/Sun/SunModule.cs" />
                <include name="Modules/World/Terrain/ITerrainEffect.cs" />
                <include name="Modules/World/Terrain/ITerrainFloodEffect.cs" />
                <include name="Modules/World/Terrain/ITerrainLoader.cs" />
                <include name="Modules/World/Terrain/ITerrainModule.cs" />
                <include name="Modules/World/Terrain/ITerrainPaintableEffect.cs" />
                <include name="Modules/World/Terrain/TerrainChannel.cs" />
                <include name="Modules/World/Terrain/TerrainException.cs" />
                <include name="Modules/World/Terrain/TerrainModule.cs" />
                <include name="Modules/World/Terrain/TerrainUtil.cs" />
                <include name="Modules/World/Terrain/Effects/CookieCutter.cs" />
                <include name="Modules/World/Terrain/Effects/DefaultTerrainGenerator.cs" />
                <include name="Modules/World/Terrain/FileLoaders/BMP.cs" />
                <include name="Modules/World/Terrain/FileLoaders/GIF.cs" />
                <include name="Modules/World/Terrain/FileLoaders/GenericSystemDrawing.cs" />
                <include name="Modules/World/Terrain/FileLoaders/JPEG.cs" />
                <include name="Modules/World/Terrain/FileLoaders/LLRAW.cs" />
                <include name="Modules/World/Terrain/FileLoaders/PNG.cs" />
                <include name="Modules/World/Terrain/FileLoaders/RAW32.cs" />
                <include name="Modules/World/Terrain/FileLoaders/TIFF.cs" />
                <include name="Modules/World/Terrain/FileLoaders/Terragen.cs" />
                <include name="Modules/World/Terrain/FloodBrushes/FlattenArea.cs" />
                <include name="Modules/World/Terrain/FloodBrushes/LowerArea.cs" />
                <include name="Modules/World/Terrain/FloodBrushes/NoiseArea.cs" />
                <include name="Modules/World/Terrain/FloodBrushes/RaiseArea.cs" />
                <include name="Modules/World/Terrain/FloodBrushes/RevertArea.cs" />
                <include name="Modules/World/Terrain/FloodBrushes/SmoothArea.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/ErodeSphere.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/FlattenSphere.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/LowerSphere.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/NoiseSphere.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/OlsenSphere.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/RaiseSphere.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/RevertSphere.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/SmoothSphere.cs" />
                <include name="Modules/World/Terrain/PaintBrushes/WeatherSphere.cs" />
                <include name="Modules/World/TreePopulator/TreePopulatorModule.cs" />
                <include name="Modules/World/Wind/WindModule.cs" />
                <include name="Modules/World/WorldMap/IMapTileTerrainRenderer.cs" />
                <include name="Modules/World/WorldMap/MapImageModule.cs" />
                <include name="Modules/World/WorldMap/MapSearchModule.cs" />
                <include name="Modules/World/WorldMap/ShadedMapTileRenderer.cs" />
                <include name="Modules/World/WorldMap/TexturedMapTileRenderer.cs" />
                <include name="Modules/World/WorldMap/WorldMapModule.cs" />
                <include name="Scenes/Animation.cs" />
                <include name="Scenes/AnimationSet.cs" />
                <include name="Scenes/AsyncSceneObjectGroupDeleter.cs" />
                <include name="Scenes/AvatarAnimations.cs" />
                <include name="Scenes/EntityBase.cs" />
                <include name="Scenes/EntityList.cs" />
                <include name="Scenes/EventManager.cs" />
                <include name="Scenes/IScenePresenceBody.cs" />
                <include name="Scenes/InnerScene.cs" />
                <include name="Scenes/ReturnInfo.cs" />
                <include name="Scenes/Scene.Inventory.cs" />
                <include name="Scenes/Scene.PacketHandlers.cs" />
                <include name="Scenes/Scene.cs" />
                <include name="Scenes/SceneBase.cs" />
                <include name="Scenes/SceneCommunicationService.cs" />
                <include name="Scenes/SceneExternalChecks.cs" />
                <include name="Scenes/SceneManager.cs" />
                <include name="Scenes/SceneObjectGroup.Inventory.cs" />
                <include name="Scenes/SceneObjectGroup.cs" />
                <include name="Scenes/SceneObjectPart.Inventory.cs" />
                <include name="Scenes/SceneObjectPart.cs" />
                <include name="Scenes/ScenePresence.cs" />
                <include name="Scenes/SimStatsReporter.cs" />
                <include name="Scenes/UndoState.cs" />
                <include name="Scenes/Scripting/IScriptHost.cs" />
                <include name="Scenes/Scripting/NullScriptHost.cs" />
                <include name="Scenes/Scripting/ScriptEngineInterface.cs" />
                <include name="Scenes/Scripting/ScriptEngineLoader.cs" />
                <include name="Types/BasicQuadTreeNode.cs" />
                <include name="Types/UpdateQueue.cs" />
            </sources>
            <references basedir="${project::get-base-directory()}">
                <lib>
                    <include name="${project::get-base-directory()}" />
                    <include name="${project::get-base-directory()}/${build.dir}" />
                </lib>
                <include name="../../../bin/DotNetOpenMail.dll" />
                <include name="../../../bin/log4net.dll" />
                <include name="Microsoft.JScript.dll" />
                <include name="../../../bin/Nini.dll" />
                <include name="../../../bin/OpenMetaverse.dll" />
                <include name="../../../bin/OpenMetaverseTypes.dll" />
                <include name="../../../bin/OpenSim.Data.dll" />
                <include name="../../../bin/OpenSim.Data.Base.dll" />
                <include name="../../../bin/OpenSim.Framework.dll" />
                <include name="../../../bin/OpenSim.Framework.Communications.dll" />
                <include name="../../../bin/OpenSim.Framework.Console.dll" />
                <include name="../../../bin/OpenSim.Framework.Servers.dll" />
                <include name="../../../bin/OpenSim.Framework.Statistics.dll" />
                <include name="../../../bin/OpenSim.Region.Interfaces.dll" />
                <include name="../../../bin/OpenSim.Region.Physics.Manager.dll" />
                <include name="System.dll" />
                <include name="System.Drawing.dll" />
                <include name="System.Runtime.Remoting.dll" />
                <include name="System.Web.dll" />
                <include name="System.Xml.dll" />
                <include name="../../../bin/XMLRPC.dll" />
            </references>
        </csc>
        <echo message="Copying from [${project::get-base-directory()}/${build.dir}/] to [${project::get-base-directory()}/../../../bin/" />
        <mkdir dir="${project::get-base-directory()}/../../../bin/"/>
        <copy todir="${project::get-base-directory()}/../../../bin/">
            <fileset basedir="${project::get-base-directory()}/${build.dir}/" >
                <include name="*.dll"/>
                <include name="*.exe"/>
                <include name="*.mdb" if='${build.debug}'/>
            </fileset>
        </copy>
    </target>
    <target name="clean">
        <delete dir="${obj.dir}" failonerror="false" />
        <delete dir="${bin.dir}" failonerror="false" />
    </target>
    <target name="doc" description="Creates documentation.">
    </target>
</project>
