From 1b133ab8412e4f6a53914212df7a7656f376256d Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 5 Jul 2021 16:18:14 +0100 Subject: bpo-44479: Regenerate test_frozenmain.h and frozen_hello.h during build on Windows (GH-26984) --- PCbuild/_freeze_importlib.vcxproj | 14 ++++++------- PCbuild/python.vcxproj | 21 ++----------------- PCbuild/regen.targets | 43 +++++++++++++++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 29 deletions(-) diff --git a/PCbuild/_freeze_importlib.vcxproj b/PCbuild/_freeze_importlib.vcxproj index 52d8f1a..e437412 100644 --- a/PCbuild/_freeze_importlib.vcxproj +++ b/PCbuild/_freeze_importlib.vcxproj @@ -123,6 +123,11 @@ $(IntDir)importlib_zipimport.g.h $(PySourcePath)Python\importlib_zipimport.h + + hello + $(IntDir)frozen_hello.g.h + $(PySourcePath)Python\frozen_hello.h + @@ -130,11 +135,6 @@ - - <_OldContent Condition="Exists($(OutTargetPath))"> - <_NewContent Condition="Exists($(IntTargetPath))">$([System.IO.File]::ReadAllText($(IntTargetPath)).Replace(` `, ` `)) - - @@ -153,9 +153,7 @@ - - - + diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj index 2094420..b58945a 100644 --- a/PCbuild/python.vcxproj +++ b/PCbuild/python.vcxproj @@ -114,7 +114,9 @@ + + ucrtbase @@ -145,23 +147,4 @@ $(_PGOPath) - - - - - <_LicenseFiles Include="@(LicenseFiles)"> - $([System.IO.File]::ReadAllText(%(FullPath))) - - - - - diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets index 4d386cf..22667d0 100644 --- a/PCbuild/regen.targets +++ b/PCbuild/regen.targets @@ -73,12 +73,51 @@ - + - + + + + + <_TestFrozenSources Include="$(PySourcePath)Programs\freeze_test_frozenmain.py; + $(PySourcePath)Programs\test_frozenmain.py; + @(_OpcodeOutputs)" /> + <_TestFrozenOutputs Include="$(PySourcePath)Programs\test_frozenmain.h" /> + <_LicenseSources Include="$(PySourcePath)LICENSE; + $(PySourcePath)PC\crtlicense.txt; + $(bz2Dir)LICENSE; + $(opensslOutDir)LICENSE; + $(libffiDir)LICENSE;" /> + <_LicenseSources Include="$(tcltkDir)tcllicense.terms; + $(tcltkDir)tklicense.terms; + $(tcltkDir)tixlicense.terms" Condition="$(IncludeTkinter)" /> + <_LicenseOutputs Include="$(OutDir)LICENSE.txt" /> + + + + + + + + + + + <_Text Include="@(_LicenseFiles)"> + $([System.IO.File]::ReadAllText(%(FullPath))) + + + + + + + + + -- cgit v0.12