summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-01-20 16:38:39 (GMT)
committerGitHub <noreply@github.com>2022-01-20 16:38:39 (GMT)
commitef3ef6fa43d5cca072eed2a66064e818de583be7 (patch)
tree0bb97c08f3ce1161a9c3864baa07ce9580ab4301 /PCbuild
parent650720a0cfa1673938e6d1bad53b6c37c9edb47d (diff)
downloadcpython-ef3ef6fa43d5cca072eed2a66064e818de583be7.zip
cpython-ef3ef6fa43d5cca072eed2a66064e818de583be7.tar.gz
cpython-ef3ef6fa43d5cca072eed2a66064e818de583be7.tar.bz2
bpo-46429: Merge all deepfrozen files into one (GH-30572)
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/_freeze_module.vcxproj89
-rw-r--r--PCbuild/pythoncore.vcxproj24
2 files changed, 31 insertions, 82 deletions
diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj
index 59519ca..0a74f58 100644
--- a/PCbuild/_freeze_module.vcxproj
+++ b/PCbuild/_freeze_module.vcxproj
@@ -241,162 +241,116 @@
<ModName>importlib._bootstrap</ModName>
<IntFile>$(IntDir)importlib._bootstrap.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\importlib._bootstrap.h</OutFile>
- <DeepIntFile>$(IntDir)importlib._bootstrap.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.importlib._bootstrap.c</DeepOutFile>
</None>
<None Include="..\Lib\importlib\_bootstrap_external.py">
<ModName>importlib._bootstrap_external</ModName>
<IntFile>$(IntDir)importlib._bootstrap_external.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\importlib._bootstrap_external.h</OutFile>
- <DeepIntFile>$(IntDir)importlib._bootstrap_external.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.importlib._bootstrap_external.c</DeepOutFile>
</None>
<None Include="..\Lib\zipimport.py">
<ModName>zipimport</ModName>
<IntFile>$(IntDir)zipimport.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\zipimport.h</OutFile>
- <DeepIntFile>$(IntDir)zipimport.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.zipimport.c</DeepOutFile>
</None>
<None Include="..\Lib\abc.py">
<ModName>abc</ModName>
<IntFile>$(IntDir)abc.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\abc.h</OutFile>
- <DeepIntFile>$(IntDir)abc.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.abc.c</DeepOutFile>
</None>
<None Include="..\Lib\codecs.py">
<ModName>codecs</ModName>
<IntFile>$(IntDir)codecs.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\codecs.h</OutFile>
- <DeepIntFile>$(IntDir)codecs.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.codecs.c</DeepOutFile>
</None>
<None Include="..\Lib\io.py">
<ModName>io</ModName>
<IntFile>$(IntDir)io.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\io.h</OutFile>
- <DeepIntFile>$(IntDir)io.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.io.c</DeepOutFile>
</None>
<None Include="..\Lib\_collections_abc.py">
<ModName>_collections_abc</ModName>
<IntFile>$(IntDir)_collections_abc.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\_collections_abc.h</OutFile>
- <DeepIntFile>$(IntDir)_collections_abc.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df._collections_abc.c</DeepOutFile>
</None>
<None Include="..\Lib\_sitebuiltins.py">
<ModName>_sitebuiltins</ModName>
<IntFile>$(IntDir)_sitebuiltins.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\_sitebuiltins.h</OutFile>
- <DeepIntFile>$(IntDir)_sitebuiltins.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df._sitebuiltins.c</DeepOutFile>
</None>
<None Include="..\Lib\genericpath.py">
<ModName>genericpath</ModName>
<IntFile>$(IntDir)genericpath.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\genericpath.h</OutFile>
- <DeepIntFile>$(IntDir)genericpath.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.genericpath.c</DeepOutFile>
</None>
<None Include="..\Lib\ntpath.py">
<ModName>ntpath</ModName>
<IntFile>$(IntDir)ntpath.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\ntpath.h</OutFile>
- <DeepIntFile>$(IntDir)ntpath.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.ntpath.c</DeepOutFile>
</None>
<None Include="..\Lib\posixpath.py">
<ModName>posixpath</ModName>
<IntFile>$(IntDir)posixpath.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\posixpath.h</OutFile>
- <DeepIntFile>$(IntDir)posixpath.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.posixpath.c</DeepOutFile>
</None>
<None Include="..\Lib\os.py">
<ModName>os</ModName>
<IntFile>$(IntDir)os.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\os.h</OutFile>
- <DeepIntFile>$(IntDir)os.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.os.c</DeepOutFile>
</None>
<None Include="..\Lib\site.py">
<ModName>site</ModName>
<IntFile>$(IntDir)site.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\site.h</OutFile>
- <DeepIntFile>$(IntDir)site.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.site.c</DeepOutFile>
</None>
<None Include="..\Lib\stat.py">
<ModName>stat</ModName>
<IntFile>$(IntDir)stat.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\stat.h</OutFile>
- <DeepIntFile>$(IntDir)stat.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.stat.c</DeepOutFile>
</None>
<None Include="..\Lib\importlib\util.py">
<ModName>importlib.util</ModName>
<IntFile>$(IntDir)importlib.util.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\importlib.util.h</OutFile>
- <DeepIntFile>$(IntDir)importlib.util.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.importlib.util.c</DeepOutFile>
</None>
<None Include="..\Lib\importlib\machinery.py">
<ModName>importlib.machinery</ModName>
<IntFile>$(IntDir)importlib.machinery.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\importlib.machinery.h</OutFile>
- <DeepIntFile>$(IntDir)importlib.machinery.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.importlib.machinery.c</DeepOutFile>
</None>
<None Include="..\Lib\runpy.py">
<ModName>runpy</ModName>
<IntFile>$(IntDir)runpy.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\runpy.h</OutFile>
- <DeepIntFile>$(IntDir)runpy.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.runpy.c</DeepOutFile>
</None>
<None Include="..\Lib\__hello__.py">
<ModName>__hello__</ModName>
<IntFile>$(IntDir)__hello__.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\__hello__.h</OutFile>
- <DeepIntFile>$(IntDir)__hello__.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.__hello__.c</DeepOutFile>
</None>
<None Include="..\Lib\__phello__\__init__.py">
<ModName>__phello__</ModName>
<IntFile>$(IntDir)__phello__.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\__phello__.h</OutFile>
- <DeepIntFile>$(IntDir)__phello__.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.__phello__.c</DeepOutFile>
</None>
<None Include="..\Lib\__phello__\ham\__init__.py">
<ModName>__phello__.ham</ModName>
<IntFile>$(IntDir)__phello__.ham.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\__phello__.ham.h</OutFile>
- <DeepIntFile>$(IntDir)__phello__.ham.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.__phello__.ham.c</DeepOutFile>
</None>
<None Include="..\Lib\__phello__\ham\eggs.py">
<ModName>__phello__.ham.eggs</ModName>
<IntFile>$(IntDir)__phello__.ham.eggs.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\__phello__.ham.eggs.h</OutFile>
- <DeepIntFile>$(IntDir)__phello__.ham.eggs.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.__phello__.ham.eggs.c</DeepOutFile>
</None>
<None Include="..\Lib\__phello__\spam.py">
<ModName>__phello__.spam</ModName>
<IntFile>$(IntDir)__phello__.spam.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\__phello__.spam.h</OutFile>
- <DeepIntFile>$(IntDir)__phello__.spam.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.__phello__.spam.c</DeepOutFile>
</None>
<None Include="..\Tools\freeze\flag.py">
<ModName>frozen_only</ModName>
<IntFile>$(IntDir)frozen_only.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\frozen_only.h</OutFile>
- <DeepIntFile>$(IntDir)frozen_only.g.c</DeepIntFile>
- <DeepOutFile>$(PySourcePath)Python\deepfreeze\df.frozen_only.c</DeepOutFile>
</None>
<!-- END frozen modules -->
</ItemGroup>
@@ -424,11 +378,11 @@
Condition="'@(_UpdatedGetPath)' != ''" Importance="high" />
</Target>
<Target Name="_RebuildFrozen" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGUpdate'">
- <Exec Command='"$(TargetPath)" "%(None.ModName)" "%(None.FullPath)" "%(None.DeepIntFile)"' />
+ <Exec Command='"$(TargetPath)" "%(None.ModName)" "%(None.FullPath)" "%(None.IntFile)"' />
- <Copy SourceFiles="%(None.DeepIntFile)"
+ <Copy SourceFiles="%(None.IntFile)"
DestinationFiles="%(None.OutFile)"
- Condition="!Exists(%(None.OutFile)) or (Exists(%(None.DeepIntFile)) and '$([System.IO.File]::ReadAllText(%(None.OutFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))' != '$([System.IO.File]::ReadAllText(%(None.DeepIntFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))')">
+ Condition="!Exists(%(None.OutFile)) or (Exists(%(None.IntFile)) and '$([System.IO.File]::ReadAllText(%(None.OutFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))')">
<Output TaskParameter="CopiedFiles" ItemName="_Updated" />
</Copy>
@@ -439,16 +393,33 @@
AfterTargets="_RebuildFrozen"
DependsOnTargets="FindPythonForBuild"
Condition="$(Configuration) != 'PGUpdate'">
- <Exec Command='$(PythonForBuild) "$(PySourcePath)Tools\scripts\deepfreeze.py" "%(None.OutFile)" "-m" "%(None.ModName)" -o "%(None.IntFile)"' />
-
- <Copy SourceFiles="%(None.IntFile)"
- DestinationFiles="%(None.DeepOutFile)"
- Condition="!Exists(%(None.DeepOutFile)) or (Exists(%(None.IntFile)) and '$([System.IO.File]::ReadAllText(%(None.DeepOutFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))')">
- <Output TaskParameter="CopiedFiles" ItemName="_DeepUpdated" />
- </Copy>
-
- <Message Text="Updated files: @(_DeepUpdated->'%(Filename)%(Extension)',', ')"
- Condition="'@(_DeepUpdated)' != ''" Importance="high" />
+ <!-- BEGIN deepfreeze rule -->
+ <Exec Command='$(PythonForBuild) "$(PySourcePath)Tools\scripts\deepfreeze.py" ^
+ "$(PySourcePath)Python\frozen_modules\importlib._bootstrap.h:importlib._bootstrap" ^
+ "$(PySourcePath)Python\frozen_modules\importlib._bootstrap_external.h:importlib._bootstrap_external" ^
+ "$(PySourcePath)Python\frozen_modules\zipimport.h:zipimport" ^
+ "$(PySourcePath)Python\frozen_modules\abc.h:abc" ^
+ "$(PySourcePath)Python\frozen_modules\codecs.h:codecs" ^
+ "$(PySourcePath)Python\frozen_modules\io.h:io" ^
+ "$(PySourcePath)Python\frozen_modules\_collections_abc.h:_collections_abc" ^
+ "$(PySourcePath)Python\frozen_modules\_sitebuiltins.h:_sitebuiltins" ^
+ "$(PySourcePath)Python\frozen_modules\genericpath.h:genericpath" ^
+ "$(PySourcePath)Python\frozen_modules\ntpath.h:ntpath" ^
+ "$(PySourcePath)Python\frozen_modules\posixpath.h:posixpath" ^
+ "$(PySourcePath)Python\frozen_modules\os.h:os" ^
+ "$(PySourcePath)Python\frozen_modules\site.h:site" ^
+ "$(PySourcePath)Python\frozen_modules\stat.h:stat" ^
+ "$(PySourcePath)Python\frozen_modules\importlib.util.h:importlib.util" ^
+ "$(PySourcePath)Python\frozen_modules\importlib.machinery.h:importlib.machinery" ^
+ "$(PySourcePath)Python\frozen_modules\runpy.h:runpy" ^
+ "$(PySourcePath)Python\frozen_modules\__hello__.h:__hello__" ^
+ "$(PySourcePath)Python\frozen_modules\__phello__.h:__phello__" ^
+ "$(PySourcePath)Python\frozen_modules\__phello__.ham.h:__phello__.ham" ^
+ "$(PySourcePath)Python\frozen_modules\__phello__.ham.eggs.h:__phello__.ham.eggs" ^
+ "$(PySourcePath)Python\frozen_modules\__phello__.spam.h:__phello__.spam" ^
+ "$(PySourcePath)Python\frozen_modules\frozen_only.h:frozen_only" ^
+ "-o" "$(PySourcePath)Python\deepfreeze\deepfreeze.c"'/>
+ <!-- END deepfreeze rule -->
</Target>
<Target Name="_CleanFrozen" BeforeTargets="CoreClean" Condition="$(Configuration) != 'PGUpdate'">
<ItemGroup>
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 12eac8e..fd1ab83 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -528,29 +528,7 @@
</ItemGroup>
<ItemGroup>
<!-- BEGIN deepfreeze -->
- <ClCompile Include="..\Python\deepfreeze\df.importlib._bootstrap.c" />
- <ClCompile Include="..\Python\deepfreeze\df.importlib._bootstrap_external.c" />
- <ClCompile Include="..\Python\deepfreeze\df.zipimport.c" />
- <ClCompile Include="..\Python\deepfreeze\df.abc.c" />
- <ClCompile Include="..\Python\deepfreeze\df.codecs.c" />
- <ClCompile Include="..\Python\deepfreeze\df.io.c" />
- <ClCompile Include="..\Python\deepfreeze\df._collections_abc.c" />
- <ClCompile Include="..\Python\deepfreeze\df._sitebuiltins.c" />
- <ClCompile Include="..\Python\deepfreeze\df.genericpath.c" />
- <ClCompile Include="..\Python\deepfreeze\df.ntpath.c" />
- <ClCompile Include="..\Python\deepfreeze\df.posixpath.c" />
- <ClCompile Include="..\Python\deepfreeze\df.os.c" />
- <ClCompile Include="..\Python\deepfreeze\df.site.c" />
- <ClCompile Include="..\Python\deepfreeze\df.stat.c" />
- <ClCompile Include="..\Python\deepfreeze\df.importlib.util.c" />
- <ClCompile Include="..\Python\deepfreeze\df.importlib.machinery.c" />
- <ClCompile Include="..\Python\deepfreeze\df.runpy.c" />
- <ClCompile Include="..\Python\deepfreeze\df.__hello__.c" />
- <ClCompile Include="..\Python\deepfreeze\df.__phello__.c" />
- <ClCompile Include="..\Python\deepfreeze\df.__phello__.ham.c" />
- <ClCompile Include="..\Python\deepfreeze\df.__phello__.ham.eggs.c" />
- <ClCompile Include="..\Python\deepfreeze\df.__phello__.spam.c" />
- <ClCompile Include="..\Python\deepfreeze\df.frozen_only.c" />
+ <ClCompile Include="..\Python\deepfreeze\deepfreeze.c" />
<!-- END deepfreeze -->
</ItemGroup>
<ItemGroup Condition="$(IncludeExternals)">