Skip to content
Permalink
Browse files

[Targets] Stop using XenkoDir.cache file during build

  • Loading branch information
xen2 committed Sep 21, 2018
1 parent 9b1fcf2 commit 9eec7ceb0797be38a1bc5491f9c5f3b32f7097c8
Showing with 0 additions and 19 deletions.
  1. +0 −19 Targets/Xenko.targets
@@ -259,7 +259,6 @@
-->
<PropertyGroup>
<ResolveReferencesDependsOn>
XenkoUpdateXenkoPreviousDir;
XenkoUpdateGraphicsPlatform;
$(ResolveReferencesDependsOn)
</ResolveReferencesDependsOn>
@@ -291,24 +290,6 @@
<XenkoGameSettings Condition="'$(XenkoGameSettings)' == '' and '$([System.IO.File]::Exists($(MSBuildProjectDirectory)\Shaders.Bytecodes\GameSettings.xkgamesettings))' == 'true' ">$(MSBuildProjectDirectory)\Shaders.Bytecodes\GameSettings.xkgamesettings</XenkoGameSettings>
</PropertyGroup>

<!-- Detect if Xenko path changed -->
<Target Name="XenkoUpdateXenkoPreviousDir">
<!--Add XenkoDir cache to list of inputs-->
<ItemGroup>
<CustomAdditionalCompileInputs Include="$(IntermediateOutputPath)XenkoDir.cache" />
</ItemGroup>

<!-- Read current state -->
<ReadLinesFromFile Condition="Exists('$(IntermediateOutputPath)XenkoDir.cache')" File="$(IntermediateOutputPath)XenkoDir.cache">
<Output TaskParameter="Lines" PropertyName="XenkoPreviousDir"/>
</ReadLinesFromFile>

<!-- Write result back to disk if it changed -->
<Message Importance="Normal" Condition=" '$(XenkoPreviousDir)' != '$(XenkoDir)' " Text="Detected a change in Xenko directory: '$(XenkoDir)' (previous build: '$(XenkoPreviousDir)')"/>
<WriteLinesToFile Condition=" '$(XenkoPreviousDir)' != '$(XenkoDir)' " File="$(IntermediateOutputPath)XenkoDir.cache" Lines="$(XenkoDir)" Overwrite="true" />
</Target>


<!-- Compute graphics platform from game settings asset -->
<Target Name="XenkoComputeGraphicsPlatformFromGameSettings" Inputs="$(XenkoGameSettings)" Outputs="$(IntermediateOutputPath)XenkoGraphicsPlatform.cache" Condition="'$(XenkoIsExecutable)' == 'true'">
<!-- Ensure the output directory exists -->

0 comments on commit 9eec7ce

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