Skip to content
Permalink
Browse files

[Templates] Simplify platform projects

  • Loading branch information
xen2 committed Sep 11, 2018
1 parent 857b8b2 commit c59381347512a9e5327b54e4051ede30a050f72d
@@ -269,7 +269,7 @@
</PrepareForRunDependsOn>

<!--asset BuildPath for all platforms (same as package)-->
<XenkoCompileAssetBuildPath Condition="'$(XenkoCompileAssetBuildPath)' == ''">$(MSBuildProjectDirectory)\Cache\data</XenkoCompileAssetBuildPath>
<XenkoCompileAssetBuildPath Condition="'$(XenkoCompileAssetBuildPath)' == ''">$(MSBuildProjectDirectory)\..\Cache\data</XenkoCompileAssetBuildPath>

<!--asset OutputPath for Android.-->
<XenkoCompileAssetOutputPath Condition="'$(XenkoCompileAssetOutputPath)' == '' and '$(XenkoPlatform)' == 'Android'">$(ProjectDir)$(IntermediateOutputPath)assets\data</XenkoCompileAssetOutputPath>
@@ -1,20 +1,6 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#
var currentPlatform = (Xenko.Core.PlatformType)Properties.CurrentPlatform;
#>
<PropertyGroup>
<XenkoCurrentPackagePath>$(MSBuildThisFileDirectory)..\<#= Properties.PackageGameRelativePath #></XenkoCurrentPackagePath>
<XenkoProjectType><#= Properties.ProjectType #></XenkoProjectType>
<#
if (currentPlatform != Xenko.Core.PlatformType.Shared)
{
#>
<XenkoPlatform><#= currentPlatform #></XenkoPlatform>
<#
}
#>
</PropertyGroup>
<#
var currentPlatform = (Xenko.Core.PlatformType)Properties.CurrentPlatform;
foreach(var platform in Properties.Platforms)
{
// Skip the platform if it is not current
@@ -49,14 +35,12 @@ foreach(var platform in Properties.Platforms)
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;<#= string.Join(";", platform.DefineConstants) #></DefineConstants>
<# if (platformName == "iPhone") { #>
<MtouchFastDev>True</MtouchFastDev>
<# } #>
<# } else { #>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>TRACE;<#= string.Join(";", platform.DefineConstants) #></DefineConstants>
<# } #>
<OutputPath>..\Bin\<#= platform.Name #><#= platformPart.Cpu != null ? "-" + platformPart.Cpu : string.Empty #>\<#= config.Name #>\</OutputPath>
<IntermediateOutputPath>obj\<#= platform.Name #><#= platformPart.Cpu != null ? "-" + platformPart.Cpu : string.Empty #>\<#= config.Name #>\</IntermediateOutputPath>
@@ -10,7 +10,6 @@
<OutputPath>..\Bin\Linux\$(Configuration)\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<#@ include file="..\Common.PropertyGroups.targets.t4" #>

<ItemGroup>
<ProjectReference Include="..\<#= Properties.ProjectGameRelativePath #>" />
@@ -10,7 +10,6 @@
<OutputPath>..\Bin\Windows\$(Configuration)\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<#@ include file="..\Common.PropertyGroups.targets.t4" #>

<ItemGroup>
<ProjectReference Include="..\<#= Properties.ProjectGameRelativePath #>" />

0 comments on commit c593813

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