- added InputSystems to Windows 8 / Metro build (main build script)

- fixed some compile errors in XAudio SoundSystem when building for Windows 8 / Metro
- updated ProjectConverter to remove OggVorbis assemblies from project references when building for Windows 8 / Metro
This commit is contained in:
Glatzemann 2012-11-13 14:30:50 +00:00 committed by Konstantin Koch
parent 786934191d
commit 5b871f27fa
27 changed files with 19552 additions and 24116 deletions

View File

@ -63,6 +63,23 @@
<Compile Include="ContentProcessor.cs" /> <Compile Include="ContentProcessor.cs" />
<Compile Include="ContentProcessorAttribute.cs" /> <Compile Include="ContentProcessorAttribute.cs" />
<Compile Include="ContentProcessorContext.cs" /> <Compile Include="ContentProcessorContext.cs" />
<Compile Include="Helpers\DX11MetroShaderCodeGenerator\CompiledPass.cs" />
<Compile Include="Helpers\DX11MetroShaderCodeGenerator\MetroCodeGenerator.cs" />
<Compile Include="Helpers\GL3\ShaderHelper.cs" />
<Compile Include="Helpers\GL3\ShaderData.cs" />
<Compile Include="Helpers\HLSLParser\CommentRemover.cs" />
<Compile Include="Helpers\HLSLParser\EffectBuffer.cs" />
<Compile Include="Helpers\HLSLParser\EffectFile.cs" />
<Compile Include="Helpers\HLSLParser\IShaderElement.cs" />
<Compile Include="Helpers\HLSLParser\Method.cs" />
<Compile Include="Helpers\HLSLParser\Parser.cs" />
<Compile Include="Helpers\HLSLParser\ParseTextWalker.cs" />
<Compile Include="Helpers\HLSLParser\Pass.cs" />
<Compile Include="Helpers\HLSLParser\Sampler.cs" />
<Compile Include="Helpers\HLSLParser\Structure.cs" />
<Compile Include="Helpers\HLSLParser\Technique.cs" />
<Compile Include="Helpers\HLSLParser\TypeDef.cs" />
<Compile Include="Helpers\HLSLParser\Variable.cs" />
<Compile Include="Importer\EffectImporter.cs" /> <Compile Include="Importer\EffectImporter.cs" />
<Compile Include="ExternalReference.cs" /> <Compile Include="ExternalReference.cs" />
<Compile Include="Importer\FbxImporter.cs" /> <Compile Include="Importer\FbxImporter.cs" />
@ -146,17 +163,20 @@
<Compile Include="Processors\VertexBufferContent.cs" /> <Compile Include="Processors\VertexBufferContent.cs" />
<Compile Include="Processors\VertexDeclarationContent.cs" /> <Compile Include="Processors\VertexDeclarationContent.cs" />
<Compile Include="Processors\VideoProcessor.cs" /> <Compile Include="Processors\VideoProcessor.cs" />
<Compile Include="Serialization\Compiler\ArrayWriter.cs" />
<Compile Include="Serialization\Compiler\BuiltInTypeWriter.cs" /> <Compile Include="Serialization\Compiler\BuiltInTypeWriter.cs" />
<Compile Include="Serialization\Compiler\ContentCompiler.cs" /> <Compile Include="Serialization\Compiler\ContentCompiler.cs" />
<Compile Include="Serialization\Compiler\ContentTypeWriter.cs" /> <Compile Include="Serialization\Compiler\ContentTypeWriter.cs" />
<Compile Include="Serialization\Compiler\ContentTypeWriterAttribute.cs" /> <Compile Include="Serialization\Compiler\ContentTypeWriterAttribute.cs" />
<Compile Include="Serialization\Compiler\ContentWriter.cs" /> <Compile Include="Serialization\Compiler\ContentWriter.cs" />
<Compile Include="Serialization\Compiler\EnumWriter.cs" />
<Compile Include="Serialization\Compiler\GenericContentTypeWriter.cs" /> <Compile Include="Serialization\Compiler\GenericContentTypeWriter.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Serialization\Compiler\GraphicTypeWriters\EffectWriter.cs" /> <Compile Include="Serialization\Compiler\GraphicTypeWriters\EffectWriter.cs" />
<Compile Include="Serialization\Compiler\GraphicTypeWriters\Texture2DWriter.cs" /> <Compile Include="Serialization\Compiler\GraphicTypeWriters\Texture2DWriter.cs" />
<Compile Include="Serialization\Compiler\GraphicTypeWriters\SpriteFontWriter.cs" /> <Compile Include="Serialization\Compiler\GraphicTypeWriters\SpriteFontWriter.cs" />
<Compile Include="Serialization\Compiler\GraphicTypeWriters\TextureWriter.cs" /> <Compile Include="Serialization\Compiler\GraphicTypeWriters\TextureWriter.cs" />
<Compile Include="Serialization\Compiler\ListWriter.cs" />
<Compile Include="Serialization\Compiler\MathTypeWriters\BoundingBoxWriter.cs" /> <Compile Include="Serialization\Compiler\MathTypeWriters\BoundingBoxWriter.cs" />
<Compile Include="Serialization\Compiler\MathTypeWriters\BoundingSphereWriter.cs" /> <Compile Include="Serialization\Compiler\MathTypeWriters\BoundingSphereWriter.cs" />
<Compile Include="Serialization\Compiler\MathTypeWriters\BoundingFrustumWriter.cs" /> <Compile Include="Serialization\Compiler\MathTypeWriters\BoundingFrustumWriter.cs" />
@ -181,6 +201,7 @@
<Compile Include="Serialization\Compiler\PrimitiveTypeWriters\ObjectWriter.cs" /> <Compile Include="Serialization\Compiler\PrimitiveTypeWriters\ObjectWriter.cs" />
<Compile Include="Serialization\Compiler\PrimitiveTypeWriters\StringWriter.cs" /> <Compile Include="Serialization\Compiler\PrimitiveTypeWriters\StringWriter.cs" />
<Compile Include="Serialization\Compiler\PrimitiveTypeWriters\SingleWriter.cs" /> <Compile Include="Serialization\Compiler\PrimitiveTypeWriters\SingleWriter.cs" />
<Compile Include="Serialization\Compiler\SystemTypeWriters\CharWriter.cs" />
<Compile Include="Serialization\Compiler\SystemTypeWriters\DateTimeWriter.cs" /> <Compile Include="Serialization\Compiler\SystemTypeWriters\DateTimeWriter.cs" />
<Compile Include="Serialization\Compiler\SystemTypeWriters\DecimalWriter.cs" /> <Compile Include="Serialization\Compiler\SystemTypeWriters\DecimalWriter.cs" />
<Compile Include="Serialization\Compiler\SystemTypeWriters\NullableWriter.cs" /> <Compile Include="Serialization\Compiler\SystemTypeWriters\NullableWriter.cs" />

View File

@ -32,7 +32,7 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben: // übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.1.*")] [assembly: AssemblyVersion("1.1.2.*")]
[assembly: AssemblyFileVersion("1.1.1.0")] [assembly: AssemblyFileVersion("1.1.2.0")]
[assembly: InternalsVisibleTo("ANX.Framework.TestCenter")] [assembly: InternalsVisibleTo("ANX.Framework.TestCenter")]

View File

@ -23,7 +23,7 @@
<DefineConstants>TRACE;DEBUG;WINDOWSMETRO;</DefineConstants> <DefineConstants>TRACE;DEBUG;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
@ -32,7 +32,7 @@
<DefineConstants>TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Sce.PlayStation.Core"> <Reference Include="Sce.PlayStation.Core">

View File

@ -16,7 +16,7 @@
<PackageCertificateKeyFile>Test_TemporaryKey.pfx</PackageCertificateKeyFile> <PackageCertificateKeyFile>Test_TemporaryKey.pfx</PackageCertificateKeyFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
@ -26,7 +26,7 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\..\bin\Debug\ModernUI</OutputPath> <OutputPath>..\..\bin\Debug\ModernUI</OutputPath>

View File

@ -23,7 +23,7 @@
<DefineConstants>XNAEXT;DEBUG;TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>XNAEXT;DEBUG;TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies> <GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
@ -34,7 +34,7 @@
<DefineConstants>XNAEXT;TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>XNAEXT;TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -65,13 +65,15 @@
<Compile Include="SamplerStateGL3.cs" /> <Compile Include="SamplerStateGL3.cs" />
<Compile Include="ShaderAttributeGL3.cs" /> <Compile Include="ShaderAttributeGL3.cs" />
<Compile Include="ShaderByteCode.cs" /> <Compile Include="ShaderByteCode.cs" />
<Compile Include="ShaderData.cs" />
<Compile Include="ShaderHelper.cs" />
<Compile Include="SupportedPlatformsImpl.cs" /> <Compile Include="SupportedPlatformsImpl.cs" />
<Compile Include="Texture2DGL3.cs" /> <Compile Include="Texture2DGL3.cs" />
<Compile Include="VertexBufferGL3.cs" /> <Compile Include="VertexBufferGL3.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\ANX.Framework.Content.Pipeline\ANX.Framework.Content.Pipeline_WindowsMetro.csproj">
<Project>{2DAFDFC1-223B-4741-87BB-BE3D0A7617DB}</Project>
<Name>ANX.Framework.Content.Pipeline</Name>
</ProjectReference>
<ProjectReference Include="..\..\ANX.Framework\ANX.Framework_WindowsMetro.csproj"> <ProjectReference Include="..\..\ANX.Framework\ANX.Framework_WindowsMetro.csproj">
<Project>{6899f0c9-70b9-4eb0-9dd3-e598d4be3e35}</Project> <Project>{6899f0c9-70b9-4eb0-9dd3-e598d4be3e35}</Project>
<Name>ANX.Framework</Name> <Name>ANX.Framework</Name>

View File

@ -22,8 +22,8 @@
<OutputPath>..\..\bin\Debug\ModernUI</OutputPath> <OutputPath>..\..\bin\Debug\ModernUI</OutputPath>
<DefineConstants>XNAEXT DX10;DEBUG;TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>XNAEXT DX10;DEBUG;TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>0</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@ -33,7 +33,7 @@
<DefineConstants>XNAEXT DX10;TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>XNAEXT DX10;TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -16,22 +16,22 @@
<PackageCertificateKeyFile>Test_TemporaryKey.pfx</PackageCertificateKeyFile> <PackageCertificateKeyFile>Test_TemporaryKey.pfx</PackageCertificateKeyFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>..\..\bin\Debug\ModernUI</OutputPath> <OutputPath>..\..\bin\Debug\ModernUI</OutputPath>
<DefineConstants>XNAEXT DX11;DEBUG;TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>DX11;XNAEXT;DEBUG;TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\..\bin\Release\ModernUI</OutputPath> <OutputPath>..\..\bin\Release\ModernUI</OutputPath>
<DefineConstants>XNAEXT DX11;TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>DX11;XNAEXT;TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@ -44,10 +44,6 @@
<Project>{6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35}</Project> <Project>{6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35}</Project>
<Name>ANX.Framework</Name> <Name>ANX.Framework</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\ANX.BaseDirectX\ANX.BaseDirectX.csproj">
<Project>{A4D3AD34-E49C-4142-8620-2AFF44ED6719}</Project>
<Name>ANX.BaseDirectX</Name>
</ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Reference Include="SharpDX"> <Reference Include="SharpDX">

File diff suppressed because it is too large Load Diff

View File

@ -60,7 +60,7 @@
<Compile Include="Game1.cs" /> <Compile Include="Game1.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Game.ico" /> <Content Include="anx.ico" />
<Content Include="GameThumbnail.png" /> <Content Include="GameThumbnail.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -46,7 +46,7 @@
<Compile Include="Game1.cs" /> <Compile Include="Game1.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Game.ico" /> <Content Include="anx.ico" />
<Content Include="GameThumbnail.png" /> <Content Include="GameThumbnail.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -81,7 +81,7 @@
<Compile Include="VertexTypes\VertexPositionNormalColor.cs" /> <Compile Include="VertexTypes\VertexPositionNormalColor.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Game.ico" /> <Content Include="anx.ico" />
<Content Include="GameThumbnail.png" /> <Content Include="GameThumbnail.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -48,6 +48,7 @@
<Compile Include="VertexDualTexture.cs" /> <Compile Include="VertexDualTexture.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="anx.ico" />
<Content Include="Game.ico" /> <Content Include="Game.ico" />
<Content Include="GameThumbnail.png" /> <Content Include="GameThumbnail.png" />
</ItemGroup> </ItemGroup>

View File

@ -69,7 +69,7 @@
<Compile Include="Game1.cs" /> <Compile Include="Game1.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Game.ico" /> <Content Include="anx.ico" />
<Content Include="GameThumbnail.png"> <Content Include="GameThumbnail.png">
<XnaPlatformSpecific>true</XnaPlatformSpecific> <XnaPlatformSpecific>true</XnaPlatformSpecific>
</Content> </Content>

View File

@ -32,6 +32,9 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<ApplicationIcon>anx.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
@ -66,6 +69,9 @@
<Name>ANX.SoundSystem.Windows.XAudio</Name> <Name>ANX.SoundSystem.Windows.XAudio</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="anx.ico" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- 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. Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -34,6 +34,9 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<ApplicationIcon>anx.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
@ -64,6 +67,9 @@
<Name>ANX.InputSystem.Standard</Name> <Name>ANX.InputSystem.Standard</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="anx.ico" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- 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. Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -35,6 +35,9 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<ApplicationIcon>anx.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
@ -104,6 +107,9 @@
<Name>ANX.InputSystem.Standard</Name> <Name>ANX.InputSystem.Standard</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Resource Include="anx.ico" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- 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. Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -20,26 +20,28 @@
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>..\..\bin\Debug\ModernUI</OutputPath> <OutputPath>..\..\bin\Debug\ModernUI</OutputPath>
<DefineConstants>TRACE;DEBUG;WINDOWSMETRO;</DefineConstants> <DefineConstants>XNAEXT;TRACE;DEBUG;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\..\bin\Release\ModernUI</OutputPath> <OutputPath>..\bin\Release\ModernUI</OutputPath>
<DefineConstants>TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>XNAEXT;TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="OpenTK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL"> <Reference Include="OpenTK">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\OpenTK\OpenTK.dll</HintPath> <HintPath>..\..\lib\OpenTK\OpenTK.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Creator.cs" /> <Compile Include="Creator.cs" />
@ -56,10 +58,6 @@
<Project>{6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35}</Project> <Project>{6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35}</Project>
<Name>ANX.Framework</Name> <Name>ANX.Framework</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\Support\OggUtils\OggUtils_WindowsMetro.csproj">
<Project>{ABECEC14-6BF4-4432-833C-69714EB4E8E6}</Project>
<Name>OggUtils</Name>
</ProjectReference>
<ProjectReference Include="..\..\Support\WaveUtils\WaveUtils_WindowsMetro.csproj"> <ProjectReference Include="..\..\Support\WaveUtils\WaveUtils_WindowsMetro.csproj">
<Project>{1986B0ED-3D28-4FEE-82D0-BCC39C87C18C}</Project> <Project>{1986B0ED-3D28-4FEE-82D0-BCC39C87C18C}</Project>
<Name>WaveUtils</Name> <Name>WaveUtils</Name>

View File

@ -23,7 +23,7 @@
<DefineConstants>TRACE;DEBUG;WINDOWSMETRO;</DefineConstants> <DefineConstants>TRACE;DEBUG;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
@ -32,7 +32,7 @@
<DefineConstants>TRACE;WINDOWSMETRO;</DefineConstants> <DefineConstants>TRACE;WINDOWSMETRO;</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />

View File

@ -58,10 +58,6 @@
<Project>{6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35}</Project> <Project>{6899F0C9-70B9-4EB0-9DD3-E598D4BE3E35}</Project>
<Name>ANX.Framework</Name> <Name>ANX.Framework</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\Support\OggUtils\OggUtils_WindowsMetro.csproj">
<Project>{ABECEC14-6BF4-4432-833C-69714EB4E8E6}</Project>
<Name>OggUtils</Name>
</ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -1,4 +1,5 @@
using System; #if !WINDOWSMETRO
using System;
using System.IO; using System.IO;
using OggUtils; using OggUtils;
using SharpDX; using SharpDX;
@ -42,3 +43,4 @@ namespace ANX.SoundSystem.Windows.XAudio
} }
} }
} }
#endif

View File

@ -17,8 +17,10 @@ namespace ANX.SoundSystem.Windows.XAudio
[Developer("AstrorEnales")] [Developer("AstrorEnales")]
public class XAudioSong : ISong public class XAudioSong : ISong
{ {
#if !WINDOWSMETRO
private FileStream oggFileStream; private FileStream oggFileStream;
private XAudioOggInputStream oggStream; private XAudioOggInputStream oggStream;
#endif
private SourceVoice source; private SourceVoice source;
private readonly AudioBuffer[] buffers = new AudioBuffer[2]; private readonly AudioBuffer[] buffers = new AudioBuffer[2];
private int nextBufferIndex; private int nextBufferIndex;
@ -53,6 +55,7 @@ namespace ANX.SoundSystem.Windows.XAudio
PlayPosition = TimeSpan.Zero; PlayPosition = TimeSpan.Zero;
State = MediaState.Stopped; State = MediaState.Stopped;
#if !WINDOWSMETRO
oggFileStream = File.Open(filepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); oggFileStream = File.Open(filepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
oggStream = new XAudioOggInputStream(oggFileStream); oggStream = new XAudioOggInputStream(oggFileStream);
var format = new WaveFormat(oggStream.SampleRate, 16, oggStream.Channels); var format = new WaveFormat(oggStream.SampleRate, 16, oggStream.Channels);
@ -61,6 +64,7 @@ namespace ANX.SoundSystem.Windows.XAudio
for (int index = 0; index < buffers.Length; index++) for (int index = 0; index < buffers.Length; index++)
buffers[index] = new AudioBuffer { Stream = new DataStream(XAudioOggInputStream.BufferLength, false, true) }; buffers[index] = new AudioBuffer { Stream = new DataStream(XAudioOggInputStream.BufferLength, false, true) };
#endif
} }
private void StreamBuffer(IntPtr handle) private void StreamBuffer(IntPtr handle)
@ -126,12 +130,15 @@ namespace ANX.SoundSystem.Windows.XAudio
internal void Rewind() internal void Rewind()
{ {
PlayPosition = TimeSpan.Zero; PlayPosition = TimeSpan.Zero;
#if !WINDOWSMETRO
oggFileStream.Position = 0; oggFileStream.Position = 0;
oggStream = new XAudioOggInputStream(oggFileStream); oggStream = new XAudioOggInputStream(oggFileStream);
#endif
} }
internal bool Stream() internal bool Stream()
{ {
#if !WINDOWSMETRO
AudioBuffer currentBuffer = buffers[nextBufferIndex]; AudioBuffer currentBuffer = buffers[nextBufferIndex];
currentBuffer.Stream.Position = 0; currentBuffer.Stream.Position = 0;
int size = oggStream.Read(currentBuffer.Stream); int size = oggStream.Read(currentBuffer.Stream);
@ -145,15 +152,27 @@ namespace ANX.SoundSystem.Windows.XAudio
nextBufferIndex = (nextBufferIndex + 1) % buffers.Length; nextBufferIndex = (nextBufferIndex + 1) % buffers.Length;
return true; return true;
#else
return false;
#endif
} }
public void Dispose() public void Dispose()
{ {
#if !WINDOWSMETRO
if (oggFileStream != null) if (oggFileStream != null)
{
oggFileStream.Close(); oggFileStream.Close();
oggFileStream.Dispose();
oggFileStream = null;
}
if (oggStream != null)
{
oggStream = null;
}
#endif
oggFileStream = null;
oggStream = null;
if (source != null) if (source != null)
{ {
source.FlushSourceBuffers(); source.FlushSourceBuffers();

View File

@ -62,6 +62,7 @@ namespace ProjectConverter.Platforms
"ANX.SoundSystem.OpenAL", "ANX.SoundSystem.OpenAL",
"ANX.InputDevices.Windows.XInput", "ANX.InputDevices.Windows.XInput",
"System.Windows.Forms", "System.Windows.Forms",
"OggUtils",
}; };
protected override void ConvertProjectReference(XElement element) protected override void ConvertProjectReference(XElement element)

View File

@ -33,8 +33,9 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="nunit.framework"> <Reference Include="nunit.framework, Version=2.6.1.12217, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\lib\NUnit-2.6.1\bin\nunit.framework.dll</HintPath> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\NUnit-2.6.1\bin\framework\nunit.framework.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
@ -70,7 +71,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\ANX.Framework.Content.Pipeline\ANX.Framework.Content.Pipeline.csproj"> <ProjectReference Include="..\..\ANX.Framework.Content.Pipeline\ANX.Framework.Content.Pipeline.csproj">
<Project>{2DAFDFC1-223B-4741-87BB-BE3D0A7617DB}</Project> <Project>{2dafdfc1-223b-4741-87bb-be3d0a7617db}</Project>
<Name>ANX.Framework.Content.Pipeline</Name> <Name>ANX.Framework.Content.Pipeline</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben: // übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.3.*")] [assembly: AssemblyVersion("1.2.4.*")]
[assembly: AssemblyFileVersion("1.2.3.0")] [assembly: AssemblyFileVersion("1.2.4.0")]

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben: // übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.8.7.*")] [assembly: AssemblyVersion("0.8.8.*")]
[assembly: AssemblyFileVersion("0.8.7.0")] [assembly: AssemblyFileVersion("0.8.8.0")]

View File

@ -340,7 +340,9 @@
<arg value="/p:OutputPath=${build.dir.tools}" /> <arg value="/p:OutputPath=${build.dir.tools}" />
<arg value="/p:AllowUnsafeBlocks=true" /> <arg value="/p:AllowUnsafeBlocks=true" />
<arg value="/p:SolutionDir=${build.solution_dir}" /> <arg value="/p:SolutionDir=${build.solution_dir}" />
<!--
<arg value='/p:DefineConstants="${project.anx.directives}"' /> <arg value='/p:DefineConstants="${project.anx.directives}"' />
-->
<arg value="/clp:ErrorsOnly" /> <arg value="/clp:ErrorsOnly" />
<arg value="/nologo" /> <arg value="/nologo" />
<arg value="${projectFile}" /> <arg value="${projectFile}" />

View File

@ -39,6 +39,7 @@
<if test="${project.anx.metro}"> <if test="${project.anx.metro}">
<fileset id="inputsystem_files" basedir="../InputSystems/"> <fileset id="inputsystem_files" basedir="../InputSystems/">
<include name="**/*ModernUI*_WindowsMetro.csproj" /> <include name="**/*ModernUI*_WindowsMetro.csproj" />
<include name="**/ANX.InputSystem.*_WindowsMetro.csproj" />
<exclude name="**/*PsVita*.csproj" /> <exclude name="**/*PsVita*.csproj" />
<exclude name="**/*Kinect*.csproj" /> <exclude name="**/*Kinect*.csproj" />
<exclude name="**/*Linux*.csproj" /> <exclude name="**/*Linux*.csproj" />