Skip to content

Commit

Permalink
[Targets] Stop using XenkoDir.cache file during build
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Sep 21, 2018
1 parent 9b1fcf2 commit 9eec7ce
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Targets/Xenko.targets
Expand Up @@ -259,7 +259,6 @@
-->
<PropertyGroup>
<ResolveReferencesDependsOn>
XenkoUpdateXenkoPreviousDir;
XenkoUpdateGraphicsPlatform;
$(ResolveReferencesDependsOn)
</ResolveReferencesDependsOn>
Expand Down Expand Up @@ -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 -->
Expand Down

0 comments on commit 9eec7ce

Please sign in to comment.