Ensure LICENSE.txt file is generated even in PGO builds (GH-27580)

This commit is contained in:
Steve Dower 2021-08-03 16:52:45 +01:00 committed by GitHub
parent 58325971de
commit 6871fd0e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,8 @@
</ItemGroup>
<Target Name="_RegenTestFrozenmain" Inputs="@(_TestFrozenSources)" Outputs="@(_TestFrozenOutputs)"
Condition="$(Platform) == 'Win32' or $(Platform) == 'x64'">
Condition="($(Platform) == 'Win32' or $(Platform) == 'x64') and
$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'">
<Message Text="Regenerate @(_TestFrozenOutputs->'%(Filename)%(Extension)', ' ')" Importance="high" />
<Exec Command="$(PythonExe) Programs\freeze_test_frozenmain.py Programs/test_frozenmain.h"
WorkingDirectory="$(PySourcePath)" />
@ -121,7 +122,5 @@
<Message Text="Wrote $(OutDir)LICENSE.txt" Importance="high" />
</Target>
<Target Name="PostBuildRegen"
Condition="$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'"
DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
<Target Name="PostBuildRegen" DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
</Project>