]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #9810: Compile bzip2 source files in python's project file
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Thu, 16 Sep 2010 17:50:57 +0000 (17:50 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Thu, 16 Sep 2010 17:50:57 +0000 (17:50 +0000)
directly. It used to be built with bzip2's makefile.

Misc/NEWS
PCbuild/bz2.vcproj

index 43c55df5f10873ba4f3fed94bc62b349f6522298..60b62b2c20301c3cff6a597f58edfd1d5dbf5150 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -183,6 +183,9 @@ Tests
 Build
 -----
 
+- Issue #9810: Compile bzip2 source files in python's project file
+  directly. It used to be built with bzip2's makefile.
+
 - Issue #9848: Stopping trying to build _weakref in setup.py as it is a
   built-in module.
 
index 2c16eb0cbb5ac06021bea14c69b1d1b85bad6c4d..afda578e4363bf15746cadcae15be05b9c8644c6 100644 (file)
@@ -43,6 +43,7 @@
                        <Tool
                                Name="VCCLCompilerTool"
                                AdditionalIncludeDirectories="$(bz2Dir)"
+                               PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
                        />
                        <Tool
                                Name="VCManagedResourceCompilerTool"
                        />
                        <Tool
                                Name="VCPreLinkEventTool"
-                               Description="Build libbz2"
-                               CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Debug\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Debug mkdir $(PlatformName)-Debug&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Debug&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Debug\libbz2.lib"
+                               BaseAddress="0x1D170000"
                        />
                        <Tool
                                Name="VCALinkTool"
                        <Tool
                                Name="VCCLCompilerTool"
                                AdditionalIncludeDirectories="$(bz2Dir)"
+                               PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
                        />
                        <Tool
                                Name="VCManagedResourceCompilerTool"
                        />
                        <Tool
                                Name="VCPreLinkEventTool"
-                               Description="Build libbz2"
-                               CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Debug\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Debug mkdir $(PlatformName)-Debug&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Debug&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Debug\libbz2.lib"
+                               BaseAddress="0x1D170000"
                        />
                        <Tool
                                Name="VCALinkTool"
                        <Tool
                                Name="VCCLCompilerTool"
                                AdditionalIncludeDirectories="$(bz2Dir)"
+                               PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
                        />
                        <Tool
                                Name="VCManagedResourceCompilerTool"
                        />
                        <Tool
                                Name="VCPreLinkEventTool"
-                               Description="Build libbz2"
-                               CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               BaseAddress="0x1D170000"
                        />
                        <Tool
                                Name="VCALinkTool"
                        <Tool
                                Name="VCCLCompilerTool"
                                AdditionalIncludeDirectories="$(bz2Dir)"
+                               PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
                        />
                        <Tool
                                Name="VCManagedResourceCompilerTool"
                        />
                        <Tool
                                Name="VCPreLinkEventTool"
-                               Description="Build libbz2"
-                               CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               BaseAddress="0x1D170000"
                        />
                        <Tool
                                Name="VCALinkTool"
                        <Tool
                                Name="VCCLCompilerTool"
                                AdditionalIncludeDirectories="$(bz2Dir)"
+                               PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
                        />
                        <Tool
                                Name="VCManagedResourceCompilerTool"
                        />
                        <Tool
                                Name="VCPreLinkEventTool"
-                               Description="Build libbz2"
-                               CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               BaseAddress="0x1D170000"
                        />
                        <Tool
                                Name="VCALinkTool"
                        <Tool
                                Name="VCCLCompilerTool"
                                AdditionalIncludeDirectories="$(bz2Dir)"
+                               PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
                        />
                        <Tool
                                Name="VCManagedResourceCompilerTool"
                        />
                        <Tool
                                Name="VCPreLinkEventTool"
-                               Description="Build libbz2"
-                               CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               BaseAddress="0x1D170000"
                                TargetMachine="17"
                        />
                        <Tool
                        <Tool
                                Name="VCCLCompilerTool"
                                AdditionalIncludeDirectories="$(bz2Dir)"
+                               PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
                        />
                        <Tool
                                Name="VCManagedResourceCompilerTool"
                        />
                        <Tool
                                Name="VCPreLinkEventTool"
-                               Description="Build libbz2"
-                               CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               BaseAddress="0x1D170000"
                        />
                        <Tool
                                Name="VCALinkTool"
                        <Tool
                                Name="VCCLCompilerTool"
                                AdditionalIncludeDirectories="$(bz2Dir)"
+                               PreprocessorDefinitions="WIN32;_FILE_OFFSET_BITS=64"
                        />
                        <Tool
                                Name="VCManagedResourceCompilerTool"
                        />
                        <Tool
                                Name="VCPreLinkEventTool"
-                               Description="Build libbz2"
-                               CommandLine="cd $(bz2Dir)&#x0D;&#x0A;if exist $(PlatformName)-Release\libbz2.lib exit 0&#x0D;&#x0A;if not exist $(PlatformName)-Release mkdir $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc lib&#x0D;&#x0A;copy libbz2.lib $(PlatformName)-Release&#x0D;&#x0A;nmake /nologo /f makefile.msc clean&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="$(bz2Dir)\$(PlatformName)-Release\libbz2.lib"
+                               BaseAddress="0x1D170000"
                                TargetMachine="17"
                        />
                        <Tool
                                >
                        </File>
                </Filter>
+               <Filter
+                       Name="bzip2 1.0.5 Header Files"
+                       >
+                       <File
+                               RelativePath="$(bz2Dir)\bzlib.h"
+                               >
+                       </File>
+                       <File
+                               RelativePath="$(bz2Dir)\bzlib_private.h"
+                               >
+                       </File>
+               </Filter>
+               <Filter
+                       Name="bzip2 1.0.5 Source Files"
+                       >
+                       <File
+                               RelativePath="$(bz2Dir)\blocksort.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath="$(bz2Dir)\bzlib.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath="$(bz2Dir)\compress.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath="$(bz2Dir)\crctable.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath="$(bz2Dir)\decompress.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath="$(bz2Dir)\huffman.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath="$(bz2Dir)\randtable.c"
+                               >
+                       </File>
+               </Filter>
        </Files>
        <Globals>
        </Globals>