From: Steve Dower Date: Mon, 5 Jul 2021 16:28:00 +0000 (+0100) Subject: bpo-44479: Regenerate test_frozenmain.h and frozen_hello.h during build on Windows... X-Git-Tag: v3.10.0b4~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3289a50503ed1a809d77fb03744bdcc7b9f1093;p=thirdparty%2FPython%2Fcpython.git bpo-44479: Regenerate test_frozenmain.h and frozen_hello.h during build on Windows (GH-26984) --- diff --git a/PCbuild/_freeze_importlib.vcxproj b/PCbuild/_freeze_importlib.vcxproj index 52d8f1a64bb6..e437412a161c 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 2094420a8df3..b58945a4d19b 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 4d386cfa5f38..7c956c4bc58d 100644 --- a/PCbuild/regen.targets +++ b/PCbuild/regen.targets @@ -73,12 +73,44 @@ - + - + + + + + <_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))) + + + + + + + + +