Skip to content
Permalink
Browse files

[GameStudio] Added project template for macOS

  • Loading branch information
xen2 committed Jan 14, 2019
1 parent 897a5ac commit 6a096b401f85aa3cb1f322addcf8ce36be57cbcd
@@ -1,21 +1,24 @@
<#@ template="" inherits="ProjectTemplateTransformation" language="C#" #>
<Project Sdk="Microsoft.NET.Sdk">
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeIdentifier>macos-opengl</RuntimeIdentifier>
<ApplicationIcon>Resources\Icon.ico</ApplicationIcon>
<OutputType>WinExe</OutputType>
<RootNamespace>
<#= Properties.Namespace #>
</RootNamespace>
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
<ApplicationIcon>Resources\Icon.ico</ApplicationIcon>
<OutputType>WinExe</OutputType>
<RootNamespace><#= Properties.Namespace #></RootNamespace>

<OutputPath>..\Bin\macOS\$(Configuration)\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<OutputPath>..\Bin\macOS\$(Configuration)\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>

<ItemGroup>
<ProjectReference Include="..\"<#= Properties.ProjectGameRelativePath #>" />
</ItemGroup>
<!-- Force msbuild to check to rebuild this assembly instead of letting VS IDE guess -->
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>

</Project>
<ItemGroup>
<ProjectReference Include="..\<#= Properties.ProjectGameRelativePath #>" />
<!-- Needed for custom runtime.json -->
<PackageReference Include="Xenko" Version="<#= Xenko.Assets.XenkoConfig.GetLatestPackageDependency().Version #>" PrivateAssets="contentfiles;analyzers" />
</ItemGroup>

</Project>
@@ -1,6 +1,5 @@
!ProjectTemplate
!ProjectTemplate
Files:
- {Source: $ProjectName$.csproj.t4, Target: $ProjectName$.csproj, IsTemplate: true}
- {Source: $PackageGameNameShort$App.cs.t4, Target: $PackageGameNameShort$App.cs, IsTemplate: true}
- {Source: Properties\AssemblyInfo.cs.t4, Target: Properties\AssemblyInfo.cs, IsTemplate: true}
- {Source: Resources\XenkoIcon.ico, Target: Resources\Icon.ico}
- {Source: Resources\XenkoIcon.ico, Target: Resources\Icon.ico}

This file was deleted.

@@ -131,7 +131,6 @@ internal static void RegisterSolutionPlatforms()
solutionPlatforms.Add(uwpPlatform);

// Linux
// Note: Linux is using a target framework that will be used for other platforms. We will need to use multiple runtime identifiers later
var linuxPlatform = new SolutionPlatform()
{
Name = PlatformType.Linux.ToString(),
@@ -144,21 +143,19 @@ internal static void RegisterSolutionPlatforms()
linuxPlatform.DefineConstants.Add("XENKO_PLATFORM_LINUX");
solutionPlatforms.Add(linuxPlatform);

#if FALSE // Disabling macOS for time being
// macOS
var macOSPlatform = new SolutionPlatform()
{
Name = PlatformType.macOS.ToString(),
IsAvailable = true,
TargetFramework = "net461",
TargetFramework = "netcoreapp2.1",
RuntimeIdentifier = "osx-x64",
Type = PlatformType.macOS,
};
macOSPlatform.DefineConstants.Add("XENKO_PLATFORM_UNIX");
macOSPlatform.DefineConstants.Add("XENKO_PLATFORM_MACOS");
macOSPlatform.Configurations.Add(coreClrRelease);
macOSPlatform.Configurations.Add(coreClrDebug);
solutionPlatforms.Add(macOSPlatform);
#endif

// Android
var androidPlatform = new SolutionPlatform()
{

0 comments on commit 6a096b4

Please sign in to comment.
You can’t perform that action at this time.