Skip to content

Commit

Permalink
Add tvOS version of Touch.Client. (#64)
Browse files Browse the repository at this point in the history
Also rename Touch.Client to Touch.Client-iOS, and make sure to use different
output and intermediate paths in the two project files, so that they don't
output files in the same directories.
  • Loading branch information
rolfbjarne committed May 20, 2020
1 parent 705964d commit ef92ff9
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{F611ED96-54B5-4975-99BB-12F50AF95936}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TemplateGuid>{a52b8a63-bc84-4b47-910d-692533484892}</TemplateGuid>
<OutputType>Library</OutputType>
<RootNamespace>Touch.Client</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>Touch.Client</AssemblyName>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<BaseIntermediateOutputPath>obj\iOS</BaseIntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<OutputPath>bin\iOS\Debug</OutputPath>
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<OutputPath>bin\iOS\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<MtouchVerbosity></MtouchVerbosity>
Expand Down
102 changes: 102 additions & 0 deletions Touch.Client/Touch.Client-tvOS.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A571BB52-F57E-4ED0-ADC0-95656E866C18}</ProjectGuid>
<ProjectTypeGuids>{06FA79CB-D6CD-4721-BB4B-1BD202089C55};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>Touch.Client</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>Touch.Client</AssemblyName>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<BaseIntermediateOutputPath>obj\tvOS</BaseIntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\tvOS\Debug</OutputPath>
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\tvOS\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<MtouchVerbosity></MtouchVerbosity>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.TVOS" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\NUnitLite\TouchRunner\HttpTextWriter.cs">
<Link>HttpTextWriter.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\NUnitOutputTextWriter.cs">
<Link>NUnitOutputTextWriter.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\Options.cs">
<Link>Options.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TcpTextWriter.cs">
<Link>TcpTextWriter.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TestCaseElement.cs">
<Link>TestCaseElement.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TestElement.cs">
<Link>TestElement.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TestResultElement.cs">
<Link>TestResultElement.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TestRocks.cs">
<Link>TestRocks.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TestSuiteElement.cs">
<Link>TestSuiteElement.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TouchOptions.cs">
<Link>TouchOptions.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TouchRunner.cs">
<Link>TouchRunner.cs</Link>
</Compile>
<Compile Include="..\NUnitLite\TouchRunner\TouchViewController.cs">
<Link>TouchViewController.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnitLite">
<Version>3.12.0</Version>
</PackageReference>
<PackageReference Include="MonoTouch.Dialog" CopyLocal="true" IncludeAssets="all">
<Version>2.0.0-pre1</Version>
<IncludeAssets>all</IncludeAssets>
<CopyLocal>true</CopyLocal>
</PackageReference>
<PackageReference Include="NUnit.Extension.NUnitV2ResultWriter">
<Version>3.6.0</Version>
</PackageReference>
</ItemGroup>
<!-- Make sure MonoTouch.Dialog ends up in the output folder -->
<Target Name="ClearReferenceCopyLocalPaths" AfterTargets="ResolveAssemblyReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Include="@(Reference)" Condition="'%(Reference.Filename)' == 'MonoTouch.Dialog'" />
</ItemGroup>
</Target>

<Import Project="$(MSBuildExtensionsPath)\Xamarin\TVOS\Xamarin.TVOS.CSharp.targets" />
</Project>
20 changes: 19 additions & 1 deletion Touch.Unit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "monotouch.tests", "monotouc
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Touch.Server", "Touch.Server\Touch.Server.csproj", "{A1303AE1-2693-4DF7-A17B-20C2ABA1E2ED}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Touch.Client", "Touch.Client\Touch.Client.csproj", "{F611ED96-54B5-4975-99BB-12F50AF95936}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Touch.Client-tvOS", "Touch.Client\Touch.Client-tvOS.csproj", "{A571BB52-F57E-4ED0-ADC0-95656E866C18}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Touch.Client-iOS", "Touch.Client\Touch.Client-iOS.csproj", "{F611ED96-54B5-4975-99BB-12F50AF95936}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -86,6 +88,22 @@ Global
{A1303AE1-2693-4DF7-A17B-20C2ABA1E2ED}.Release|iPhone.Build.0 = Release|iPhone
{A1303AE1-2693-4DF7-A17B-20C2ABA1E2ED}.Release|iPhoneSimulator.ActiveCfg = Release|iPhone
{A1303AE1-2693-4DF7-A17B-20C2ABA1E2ED}.Release|iPhoneSimulator.Build.0 = Release|iPhone
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Debug|iPhone.Build.0 = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Release|iPhone.ActiveCfg = Release|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Release|iPhone.Build.0 = Release|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AdHoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AdHoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AdHoc|iPhone.ActiveCfg = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AdHoc|iPhone.Build.0 = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AppStore|iPhone.Build.0 = Debug|Any CPU
{F611ED96-54B5-4975-99BB-12F50AF95936}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{F611ED96-54B5-4975-99BB-12F50AF95936}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{F611ED96-54B5-4975-99BB-12F50AF95936}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
Expand Down

0 comments on commit ef92ff9

Please sign in to comment.