mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Set DisableFastUpToDateCheck on git version project
* This means the git commit is always fetched (which is cheap anyway) and projects get re-built with updated git commit version info
This commit is contained in:
@@ -108,12 +108,13 @@ namespace GitIntrospection {
|
||||
</Code>
|
||||
</Task>
|
||||
</UsingTask>
|
||||
<PropertyGroup><DisableFastUpToDateCheck>true</DisableFastUpToDateCheck></PropertyGroup>
|
||||
<!-- Only actually run the task if we located the assembly for LibGit2Sharp. Otherwise silently skip this step. -->
|
||||
<Target Name="RunTask" BeforeTargets="PrepareForBuild" Condition="exists('$(LibGit2SharpPath)')">
|
||||
<GetGitCommit Repository="$(SolutionDir)" LibGit2SharpAssemblyPath="$(LibGit2SharpPath)" ContinueOnError="WarnAndContinue">
|
||||
<Output TaskParameter="Sha1" PropertyName="CommitId" />
|
||||
</GetGitCommit>
|
||||
<Message Text="Building from Git commit $(CommitId)" />
|
||||
<Message Importance="high" Text="Building from Git commit $(CommitId)" />
|
||||
<ItemGroup Condition="$(CommitId.Length) > 0">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>GIT_COMMIT_HASH="$(CommitId)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
Reference in New Issue
Block a user