Completed [LIBOMV-319], converting libopenmv to use Prebuild

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1968 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-07-23 01:32:28 +00:00
parent e75ee3a804
commit a9a2e06ef0
24 changed files with 290 additions and 1592 deletions

View File

@@ -1,51 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Speech.Synthesis;
using libsecondlife;
using libsecondlife.Packets;
using libsecondlife.AssetSystem;
// Since this requires .Net 3.0 I've left it out of the project by default.
// To use this: include it in the project and add a reference to the System.Speech.dll
namespace libsecondlife.TestClient
{
public class TtsCommand : Command
{
SpeechSynthesizer _speechSynthesizer;
public TtsCommand(TestClient testClient)
{
Name = "tts";
Description = "Text To Speech. When activated, client will echo all recieved chat messages out thru the computer's speakers.";
}
public override string Execute(string[] args, LLUUID fromAgentID)
{
if (!Active)
{
if (_speechSynthesizer == null)
_speechSynthesizer = new SpeechSynthesizer();
Active = true;
Client.Self.OnChat += new MainAvatar.ChatCallback(Self_OnChat);
return "TTS is now on.";
}
else
{
Active = false;
Client.Self.OnChat -= new MainAvatar.ChatCallback(Self_OnChat);
return "TTS is now off.";
}
}
void Self_OnChat(string message, byte audible, byte type, byte sourcetype, string fromName, LLUUID id, LLUUID ownerid, LLVector3 position)
{
if (message.Length > 0)
{
_speechSynthesizer.SpeakAsync(message);
}
}
}
}

View File

@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Text;
using System.Threading;
using OpenMetaverse;
using OpenMetaverse.Utilities;
namespace OpenMetaverse.TestClient
{

View File

@@ -1,126 +0,0 @@
<?xml version="1.0"?>
<project
name="libsecondlife"
default="build">
<!-- global framework settings -->
<property
name="target.framework"
value="${framework::get-target-framework()}" />
<property
name="assembly.dir"
value="${framework::get-assembly-directory(target.framework)}" />
<!-- global project settings -->
<xmlpeek
file="../../../libsecondlife.build"
xpath="/project/property[@name = 'project.version']/@value"
property="project.version" />
<property
name="build.number"
value="${math::abs(math::floor(timespan::get-total-days(datetime::now()
- datetime::parse('01/01/2002'))))}" />
<property
name="assembly"
value="TestClient"/>
<property
name="bin_dir"
value="../../../bin" />
<!-- default configuration -->
<property
name="project.config"
value="debug" /> <!-- debug|release -->
<!-- named configurations -->
<target
name="init"
description="Initializes build properties">
<call target="${project.config}" />
</target>
<target
name="debug"
description="configures a debug build">
<property
name="build.debug"
value="true" />
<property
name="package.name"
value="${project::get-name()}-${project.version}-${project.config}" />
<property
name="assembly.configuration"
value="${framework::get-target-framework()}.${platform::get-name()} [${project.config}]" />
</target>
<target
name="release"
description="configures a release build">
<property
name="project.config"
value="release" />
<property
name="build.debug"
value="false" />
<property
name="package.name"
value="${project::get-name()}-${project.version}" />
<property
name="assembly.configuration"
value="${framework::get-target-framework()}.${platform::get-name()}" />
</target>
<!-- build tasks -->
<target
name="build"
depends="init"
description="Builds the binaries for the current configuration">
<echo message="Build Directory is ${bin_dir}/" />
<mkdir
dir="${bin_dir}"
failonerror="false" />
<csc
target="exe"
debug="${build.debug}"
output="${bin_dir}/${assembly}.exe">
<sources failonempty="true">
<include name="*.cs" />
<include name="Commands/**.cs" />
<exclude name="Commands/Communication/TtsCommand.cs" />
</sources>
<references basedir="${bin_dir}/">
<include name="libsecondlife.dll"/>
<include name="openjpegnet.dll"/>
<include name="System.Drawing.dll" />
</references>
</csc>
</target>
<target
name="build-dll"
description="Builds libsecondlife dll">
<nant
buildfile="../../libsecondlife-cs/libsecondlife.build"
target="${project.config} build"/>
</target>
<target
name="clean"
depends="init"
description="Deletes the current configuration">
<delete failonerror="false">
<fileset basedir="${bin_dir}/">
<include name="${assembly}.exe" />
<include name="${assembly}.pdb" />
<include name="**/${assembly}.*.resources" />
</fileset>
</delete>
</target>
<target
name="*"
description="Handles unknown targets">
<echo message="skip" />
</target>
</project>

View File

@@ -1,159 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{B87682F6-B2D7-4C4D-A529-400C24FD4880}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OpenMetaverse.TestClient</RootNamespace>
<AssemblyName>TestClient</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\..\bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release-docs|AnyCPU' ">
<OutputPath>..\..\..\bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<CodeAnalysisRuleAssemblies>C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules</CodeAnalysisRuleAssemblies>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
<DocumentationFile>..\..\..\bin\TestClient.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Arguments.cs" />
<Compile Include="Command.cs" />
<Compile Include="ClientManager.cs" />
<Compile Include="Commands\Appearance\AppearanceCommand.cs" />
<Compile Include="Commands\Appearance\AttachmentsCommand.cs" />
<Compile Include="Commands\Appearance\AvatarInfoCommand.cs" />
<Compile Include="Commands\Appearance\CloneCommand.cs" />
<Compile Include="Commands\Appearance\WearCommand.cs" />
<Compile Include="Commands\CloneProfileCommand.cs" />
<Compile Include="Commands\Communication\EchoMasterCommand.cs" />
<Compile Include="Commands\Communication\IMCommand.cs" />
<Compile Include="Commands\Communication\IMGroupCommand.cs" />
<Compile Include="Commands\Communication\SayCommand.cs" />
<Compile Include="Commands\Communication\ShoutCommand.cs" />
<Compile Include="Commands\Communication\WhisperCommand.cs" />
<Compile Include="Commands\DetectBotCommand.cs" />
<Compile Include="Commands\Friends\FriendsCommand.cs" />
<Compile Include="Commands\Friends\MapFriendCommand.cs" />
<Compile Include="Commands\GoHome.cs" />
<Compile Include="Commands\GotoLandmark.cs" />
<Compile Include="Commands\Groups\ActivateGroupCommand.cs" />
<Compile Include="Commands\Groups\GroupsCommand.cs" />
<Compile Include="Commands\Groups\JoinGroupCommand.cs" />
<Compile Include="Commands\Groups\LeaveGroupCommand.cs" />
<Compile Include="Commands\Inventory\BackupCommand.cs" />
<Compile Include="Commands\Inventory\BalanceCommand.cs" />
<Compile Include="Commands\Inventory\ChangeDirectoryCommand.cs" />
<Compile Include="Commands\Inventory\DeleteFolderCommand.cs" />
<Compile Include="Commands\Inventory\DumpOutfitCommand.cs" />
<Compile Include="Commands\Inventory\ExportOutfitCommand.cs" />
<Compile Include="Commands\Inventory\GiveAllCommand.cs" />
<Compile Include="Commands\Inventory\GiveItemCommand.cs" />
<Compile Include="Commands\Inventory\ImportOutfitCommand.cs" />
<Compile Include="Commands\Inventory\InventoryCommand.cs" />
<Compile Include="Commands\Inventory\ListContentsCommand.cs" />
<Compile Include="Commands\Inventory\ObjectInventoryCommand.cs" />
<Compile Include="Commands\Inventory\CreateNotecardCommand.cs" />
<Compile Include="Commands\Inventory\UploadImageCommand.cs" />
<Compile Include="Commands\Land\ParcelDetailsCommand.cs" />
<Compile Include="Commands\Land\FindSimCommand.cs" />
<Compile Include="Commands\Land\AgentLocationsCommand.cs" />
<Compile Include="Commands\Land\GridLayerCommand.cs" />
<Compile Include="Commands\Land\GridMapCommand.cs" />
<Compile Include="Commands\Land\ParcelInfoCommand.cs" />
<Compile Include="Commands\Movement\CrouchCommand.cs" />
<Compile Include="Commands\Movement\FlyCommand.cs" />
<Compile Include="Commands\Movement\FollowCommand.cs" />
<Compile Include="Commands\Movement\GotoCommand.cs" />
<Compile Include="Commands\Movement\JumpCommand.cs" />
<Compile Include="Commands\Movement\LocationCommand.cs" />
<Compile Include="Commands\Movement\MoveToCommand.cs" />
<Compile Include="Commands\Movement\SetHome.cs" />
<Compile Include="Commands\Movement\SitCommand.cs" />
<Compile Include="Commands\Movement\SitOnCommand.cs" />
<Compile Include="Commands\Movement\StandCommand.cs" />
<Compile Include="Commands\Prims\ChangePermsCommand.cs" />
<Compile Include="Commands\Prims\DownloadTextureCommand.cs" />
<Compile Include="Commands\Prims\ExportCommand.cs" />
<Compile Include="Commands\Prims\ExportParticlesCommand.cs" />
<Compile Include="Commands\Prims\FindObjectsCommand.cs" />
<Compile Include="Commands\Prims\FindTextureCommand.cs" />
<Compile Include="Commands\Prims\ImportCommand.cs" />
<Compile Include="Commands\Prims\PrimCountCommand.cs" />
<Compile Include="Commands\Prims\PrimInfoCommand.cs" />
<Compile Include="Commands\Prims\PrimRegexCommand.cs" />
<Compile Include="Commands\SearchEventsCommand.cs" />
<Compile Include="Commands\ShowEventDetailsCommand.cs" />
<Compile Include="Commands\Stats\DilationCommand.cs" />
<Compile Include="Commands\Stats\RegionInfoCommand.cs" />
<Compile Include="Commands\Stats\StatsCommand.cs" />
<Compile Include="Commands\Stats\UptimeCommand.cs" />
<Compile Include="Commands\System\DebugCommand.cs" />
<Compile Include="Commands\System\HelpCommand.cs" />
<Compile Include="Commands\System\LoadCommand.cs" />
<Compile Include="Commands\System\LoginCommand.cs" />
<Compile Include="Commands\System\LogoutCommand.cs" />
<Compile Include="Commands\System\MD5Command.cs" />
<Compile Include="Commands\System\PacketLogCommand.cs" />
<Compile Include="Commands\System\QuitCommand.cs" />
<Compile Include="Commands\System\SetMasterCommand.cs" />
<Compile Include="Commands\System\SetMasterKeyCommand.cs" />
<Compile Include="Commands\System\ShowEffectsCommand.cs" />
<Compile Include="Commands\TouchCommand.cs" />
<Compile Include="Commands\TreeCommand.cs" />
<Compile Include="Commands\Voice\ParcelVoiceInfo.cs" />
<Compile Include="Commands\Voice\VoiceAcountCommand.cs" />
<Compile Include="Commands\WhoCommand.cs" />
<Compile Include="Parsing.cs" />
<Compile Include="Program.cs" />
<Compile Include="TestClient.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\OpenMetaverse.csproj">
<Project>{D9CDEDFB-8169-4B03-B57F-0DF638F044EC}</Project>
<Name>OpenMetaverse</Name>
</ProjectReference>
<ProjectReference Include="..\..\libsecondlife.Utilities\OpenMetaverse.Utilities.csproj">
<Project>{CE5E06C2-2428-416B-ADC1-F1FE16A0FB27}</Project>
<Name>OpenMetaverse.Utilities</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>