summaryrefslogtreecommitdiffstats
path: root/Tools/buildbot
diff options
context:
space:
mode:
authorTrent Nelson <trent.nelson@snakebite.org>2008-03-19 07:45:19 (GMT)
committerTrent Nelson <trent.nelson@snakebite.org>2008-03-19 07:45:19 (GMT)
commit05a96641b4aef8a8f61db9d55cc051f39260b12f (patch)
treee81bbb26ecd8876c4799f7e8f2231af3caf1688c /Tools/buildbot
parentb27745fb6d522b18cef532e4b51c9368d568e90e (diff)
downloadcpython-05a96641b4aef8a8f61db9d55cc051f39260b12f.zip
cpython-05a96641b4aef8a8f61db9d55cc051f39260b12f.tar.gz
cpython-05a96641b4aef8a8f61db9d55cc051f39260b12f.tar.bz2
Refine the Visual Studio 2008 build solution in order to improve how we deal with external components, as well as fixing outstanding issues with Windows x64 build support. Introduce two new .vcproj files, _bsddb44.vcproj and sqlite3.vcproj, which replace the previous pre-link event scripts for _bsddb and _sqlite3 respectively. The new project files inherit from our property files as if they were any other Python module. This has numerous benefits. First, the components get built with exactly the same compiler flags and settings as the rest of Python. Second, it makes it much easier to debug problems in the external components when they're part of the build system. Third, they'll benefit from profile guided optimisation in the release builds, just like the rest of Python core.
I've also introduced a slightly new pattern for managing externals in subversion. New components get checked in as <name>-<version>.x, where <version> matches the exact vendor version string. After the initial import of the external component, the .x is tagged as .0 (i.e. tcl-8.4.18.x -> tcl-8.4.18.0). Some components may not need any tweaking, whereas there are others that might (tcl/tk fall into this bucket). In that case, the relevant modifications are made to the .x branch, which will be subsequently tagged as .1 (and then n+1 going forward) when they build successfully and all tests pass. Buildbots will be converted to rely on these explicit tags only, which makes it easy for us to switch them over to a new version as and when required. (Simple change to external(-amd64).bat: if we've bumped tcl to 8.4.18.1, change the .bat to rmdir 8.4.18.0 if it exists and check out a new .1 copy.)
Diffstat (limited to 'Tools/buildbot')
-rw-r--r--Tools/buildbot/external-amd64.bat27
1 files changed, 10 insertions, 17 deletions
diff --git a/Tools/buildbot/external-amd64.bat b/Tools/buildbot/external-amd64.bat
index 0ea4d64..7a8b169 100644
--- a/Tools/buildbot/external-amd64.bat
+++ b/Tools/buildbot/external-amd64.bat
@@ -1,7 +1,5 @@
@rem Fetches (and builds if necessary) external dependencies
-@REM XXX FIXME - building for x64 disabled for now.
-
@rem Assume we start inside the Python source directory
cd ..
call "%VS90COMNTOOLS%vsvars32.bat"
@@ -16,9 +14,6 @@ if exist db-4.4.20 if not exist db-4.4.20\build_win32\this_is_for_vs9 (
rd /s/q db-4.4.20
)
if not exist db-4.4.20 svn export http://svn.python.org/projects/external/db-4.4.20-vs9 db-4.4.20
-if not exist db-4.4.20\build_win32\debug\libdb44sd.lib (
- vcbuild db-4.4.20\build_win32\db_static.vcproj "Debug AMD64|x64"
-)
@rem OpenSSL
if not exist openssl-0.9.8g (
@@ -27,22 +22,20 @@ if not exist openssl-0.9.8g (
)
@rem tcltk
-if not exist tcl8.4.16 (
+if not exist tcl8.4.18.1 (
if exist tcltk rd /s/q tcltk
if exist tcl8.4.12 rd /s/q tcl8.4.12
if exist tk8.4.12 rd /s/q tk8.4.12
- svn export http://svn.python.org/projects/external/tcl8.4.16
- svn export http://svn.python.org/projects/external/tk8.4.16
-@REM cd tcl8.4.16\win
-@REM nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500
-@REM nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 INSTALLDIR=..\..\tcltk install
-@REM cd ..\..
-@REM cd tk8.4.16\win
-@REM nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 TCLDIR=..\..\tcl8.4.16
-@REM nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 TCLDIR=..\..\tcl8.4.16 INSTALLDIR=..\..\tcltk install
-@REM cd ..\..
+ if exist tcl8.4.16 rd /s/q tcl8.4.16
+ if exist tk8.4.16 rd /s/q tk8.4.16
+ svn export http://svn.python.org/projects/external/tcl-8.4.18.1
+ svn export http://svn.python.org/projects/external/tk-8.4.18.1
+ cd tcl-8.4.18.1
+ nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 DEBUG=1 MACHINE=AMD64 INSTALLDIR=../../tcltk64 clean all install
+ cd ..\..
+ cd tk-8.4.18.1
+ nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 DEBUG=1 MACHINE=AMD64 INSTALLDIR=../../tcltk64 TCLDIR=../../tcl-8.4.18.1 clean all install
)
@rem sqlite
if not exist sqlite-source-3.3.4 svn export http://svn.python.org/projects/external/sqlite-source-3.3.4
-@REM if not exist build\PCbuild\sqlite3.dll copy sqlite-source-3.3.4\sqlite3.dll build\PCbuild