Skip to content

Commit

Permalink
[Build] Fixed FastUpToDateCheck with Xenko.Native for faster iteratio…
Browse files Browse the repository at this point in the history
…n when nothing changed
  • Loading branch information
xen2 committed Oct 2, 2018
1 parent 90b6a30 commit b04c4b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion sources/engine/Xenko.Native/Xenko.Native.csproj
Expand Up @@ -14,7 +14,6 @@
<TargetFramework>$(TargetFramework)</TargetFramework>
<XenkoAssemblyProcessorOptions>--serialization --parameter-key</XenkoAssemblyProcessorOptions>
<XenkoBuildTags>*</XenkoBuildTags>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\shared\SharedAssemblyInfo.cs">
Expand Down
1 change: 0 additions & 1 deletion sources/engine/Xenko.Navigation/Xenko.Navigation.csproj
Expand Up @@ -14,7 +14,6 @@
<TargetFramework>$(TargetFramework)</TargetFramework>
<XenkoAssemblyProcessorOptions>--serialization</XenkoAssemblyProcessorOptions>
<XenkoBuildTags>*</XenkoBuildTags>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
<XenkoCodeAnalysis>true</XenkoCodeAnalysis>
</PropertyGroup>

Expand Down
Expand Up @@ -14,7 +14,6 @@
<TargetFramework>$(TargetFramework)</TargetFramework>
<XenkoAssemblyProcessorOptions>--serialization --parameter-key</XenkoAssemblyProcessorOptions>
<XenkoBuildTags>*</XenkoBuildTags>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
<XenkoCodeAnalysis>true</XenkoCodeAnalysis>
</PropertyGroup>
<Choose>
Expand Down
5 changes: 5 additions & 0 deletions sources/native/Xenko.Native.targets
Expand Up @@ -80,6 +80,7 @@
<ItemGroup>
<UpToDateCheckInput Include="@(XenkoNativeCFile)" />
<UpToDateCheckInput Include="@(XenkoNativeHFile)" />
<UpToDateCheckOutput Include="@(XenkoNativeOutput)" />
</ItemGroup>

<!-- Update XenkoNativeOutput.Link using computed OutputPath and add to XenkoNativeLib -->
Expand All @@ -93,6 +94,10 @@
</XenkoNativeOutput>
<XenkoNativeLib Include="@(XenkoNativeOutput)"/>
</ItemGroup>

<!-- This is necessary for UpToDateCheck: CompileNativeClang is checking only XenkoNativeOutput against native sources
but FastUpToDateCheck check XenkoNativeOutput against various other unrelated files such as C# sources, so we want to mark the file as modified after, even if CompileNativeClang was skipped -->
<Touch Files="@(XenkoNativeOutput)" />
</Target>

<!-- Define ItemGroup so that they are properly copied -->
Expand Down

0 comments on commit b04c4b5

Please sign in to comment.