summaryrefslogtreecommitdiffstats
path: root/PC/bdist_wininst
diff options
context:
space:
mode:
authorNikita Nemkin <nikita@nemkin.ru>2020-06-23 18:41:49 (GMT)
committerGitHub <noreply@github.com>2020-06-23 18:41:49 (GMT)
commitfe2a48c605d98ac02ab2b9593cb87ce364aeae2d (patch)
tree11471a882aa95cd8085e42e2cc340cc8264860da /PC/bdist_wininst
parentf9bd05e83e32bece49de5af0c9a232325c57648a (diff)
downloadcpython-fe2a48c605d98ac02ab2b9593cb87ce364aeae2d.zip
cpython-fe2a48c605d98ac02ab2b9593cb87ce364aeae2d.tar.gz
cpython-fe2a48c605d98ac02ab2b9593cb87ce364aeae2d.tar.bz2
bpo-41089: Filters and other issues in Visual Studio projects (GH-21070)
* Add missing header files to pythoncore. * Add missing file filters ("Resource Files" in particular) to all projects. * Add new sub-filters for private headers in pythoncore and for 3rd party source files. * Add missing _zoneinfo configurations in pcbuild.sln. * Update bdist_wininst with the new zlib location.
Diffstat (limited to 'PC/bdist_wininst')
-rw-r--r--PC/bdist_wininst/bdist_wininst.vcxproj15
-rw-r--r--PC/bdist_wininst/bdist_wininst.vcxproj.filters36
2 files changed, 29 insertions, 22 deletions
diff --git a/PC/bdist_wininst/bdist_wininst.vcxproj b/PC/bdist_wininst/bdist_wininst.vcxproj
index d2f1bb7..390bf4e 100644
--- a/PC/bdist_wininst/bdist_wininst.vcxproj
+++ b/PC/bdist_wininst/bdist_wininst.vcxproj
@@ -87,7 +87,7 @@
</Midl>
<ClCompile>
<Optimization>MinSpace</Optimization>
- <AdditionalIncludeDirectories>$(PySourcePath)Modules\zlib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(zlibDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary Condition="'$(Configuration)'=='Debug'">MultiThreadedDebug</RuntimeLibrary>
<RuntimeLibrary Condition="'$(Configuration)'=='Release'">MultiThreaded</RuntimeLibrary>
@@ -102,15 +102,16 @@
<ItemGroup>
<ClCompile Include="extract.c" />
<ClCompile Include="install.c" />
- <ClCompile Include="..\..\Modules\zlib\adler32.c" />
- <ClCompile Include="..\..\Modules\zlib\crc32.c" />
- <ClCompile Include="..\..\Modules\zlib\inffast.c" />
- <ClCompile Include="..\..\Modules\zlib\inflate.c" />
- <ClCompile Include="..\..\Modules\zlib\inftrees.c" />
- <ClCompile Include="..\..\Modules\zlib\zutil.c" />
+ <ClCompile Include="$(zlibDir)\adler32.c" />
+ <ClCompile Include="$(zlibDir)\crc32.c" />
+ <ClCompile Include="$(zlibDir)\inffast.c" />
+ <ClCompile Include="$(zlibDir)\inflate.c" />
+ <ClCompile Include="$(zlibDir)\inftrees.c" />
+ <ClCompile Include="$(zlibDir)\zutil.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="archive.h" />
+ <ClInclude Include="$(zlibDir)\zlib.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="install.rc" />
diff --git a/PC/bdist_wininst/bdist_wininst.vcxproj.filters b/PC/bdist_wininst/bdist_wininst.vcxproj.filters
index b4b6a4d..c97742e 100644
--- a/PC/bdist_wininst/bdist_wininst.vcxproj.filters
+++ b/PC/bdist_wininst/bdist_wininst.vcxproj.filters
@@ -16,45 +16,51 @@
<UniqueIdentifier>{0c77c1cf-3f87-4f87-bd86-b425211c2181}</UniqueIdentifier>
<Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
</Filter>
+ <Filter Include="Header Files\zlib">
+ <UniqueIdentifier>{d10220c7-69e3-47c5-8d82-c8e0d4d2ac88}</UniqueIdentifier>
+ </Filter>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="..\PC\bdist_wininst\extract.c">
+ <ClCompile Include="extract.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\PC\bdist_wininst\install.c">
+ <ClCompile Include="install.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\Modules\zlib\adler32.c">
+ <ClCompile Include="$(zlibDir)\adler32.c">
<Filter>Source Files\zlib</Filter>
</ClCompile>
- <ClCompile Include="..\Modules\zlib\crc32.c">
+ <ClCompile Include="$(zlibDir)\crc32.c">
<Filter>Source Files\zlib</Filter>
</ClCompile>
- <ClCompile Include="..\Modules\zlib\inffast.c">
+ <ClCompile Include="$(zlibDir)\inffast.c">
<Filter>Source Files\zlib</Filter>
</ClCompile>
- <ClCompile Include="..\Modules\zlib\inflate.c">
+ <ClCompile Include="$(zlibDir)\inflate.c">
<Filter>Source Files\zlib</Filter>
</ClCompile>
- <ClCompile Include="..\Modules\zlib\inftrees.c">
+ <ClCompile Include="$(zlibDir)\inftrees.c">
<Filter>Source Files\zlib</Filter>
</ClCompile>
- <ClCompile Include="..\Modules\zlib\zutil.c">
+ <ClCompile Include="$(zlibDir)\zutil.c">
<Filter>Source Files\zlib</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
- <ClInclude Include="..\PC\bdist_wininst\archive.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ResourceCompile Include="..\PC\bdist_wininst\install.rc">
+ <ResourceCompile Include="install.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
- <None Include="..\PC\bdist_wininst\PythonPowered.bmp">
+ <ClInclude Include="archive.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="$(zlibDir)\zlib.h">
+ <Filter>Header Files\zlib</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="PythonPowered.bmp">
<Filter>Resource Files</Filter>
</None>
</ItemGroup>