]> granicus.if.org Git - python/commitdiff
Merged revisions 84851 via svnmerge from
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sat, 18 Sep 2010 22:53:25 +0000 (22:53 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sat, 18 Sep 2010 22:53:25 +0000 (22:53 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84851 | hirokazu.yamamoto | 2010-09-17 02:50:57 +0900 | 3 lines

  Issue #9810: Compile bzip2 source files in python's project file
  directly. It used to be built with bzip2's makefile.
........

Misc/NEWS
PCbuild/bz2.vcproj

index f1fd78e8ba043fd80975adaaeeb2fb8cd246fee9..22cffdcc3c3b65c501194a166a0113737e0272ee 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -565,6 +565,9 @@ Extension Modules
 Build
 -----
 
+- Issue #9810: Compile bzip2 source files in python's project file
+  directly. It used to be built with bzip2's makefile.
+
 - Issue #941346: Improve the build process under AIX and allow Python to
   be built as a shared library.  Patch by SĂ©bastien SablĂ©.
 
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>