Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 1 | @rem Fetches (and builds if necessary) external dependencies |
| 2 | setlocal |
| 3 | |
| 4 | @rem need this so that 'devenv' is found |
| 5 | call "%VS71COMNTOOLS%vsvars32.bat" |
| 6 | @rem set the build environment |
| 7 | call "%MSSdk%\SetEnv" /XP64 /RETAIL |
| 8 | |
| 9 | @rem Assume we start inside the Python source directory |
Guido van Rossum | 7eaf822 | 2007-06-18 17:58:50 +0000 | [diff] [blame] | 10 | for %%i in (.) do set CWD=%%~fi |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 11 | cd .. |
| 12 | |
| 13 | @rem sqlite |
| 14 | if not exist sqlite-source-3.3.4 ( |
| 15 | svn export http://svn.python.org/projects/external/sqlite-source-3.3.4 |
Guido van Rossum | 7eaf822 | 2007-06-18 17:58:50 +0000 | [diff] [blame] | 16 | if exist %CWD%\PCbuild\sqlite3.dll del %CWD%\PCbuild\sqlite3.dll |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 17 | ) |
Guido van Rossum | 7eaf822 | 2007-06-18 17:58:50 +0000 | [diff] [blame] | 18 | if not exist %CWD%\PCbuild\sqlite3.dll ( |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 19 | cd sqlite-source-3.3.4\amd64 |
| 20 | cl ..\*.c |
| 21 | link /def:..\sqlite3.def /dll *.obj /out:sqlite3.dll bufferoverflowU.lib |
| 22 | cd ..\.. |
Guido van Rossum | 7eaf822 | 2007-06-18 17:58:50 +0000 | [diff] [blame] | 23 | copy sqlite-source-3.3.4\amd64\sqlite3.dll %CWD%\PCbuild |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 24 | ) |
| 25 | |
| 26 | @rem bzip |
| 27 | if not exist bzip2-1.0.3 svn export http://svn.python.org/projects/external/bzip2-1.0.3 |
Guido van Rossum | 7eaf822 | 2007-06-18 17:58:50 +0000 | [diff] [blame] | 28 | if not exist bzip2-1.0.3\libbz2.lib ( |
| 29 | cd bzip2-1.0.3 |
| 30 | nmake /f makefile.msc CFLAGS="-DWIN32 -MD -Ox -D_FILE_OFFSET_BITS=64 -nologo /GS-" |
| 31 | cd .. |
| 32 | ) |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 33 | |
| 34 | @rem Sleepycat db |
| 35 | if not exist db-4.4.20 svn export http://svn.python.org/projects/external/db-4.4.20 |
| 36 | if not exist "db-4.4.20\build_win32\Release_AMD64\libdb44s.lib" ( |
| 37 | cd db-4.4.20\build_win32 |
| 38 | devenv Berkeley_DB.sln /build "Release AMD64" /project db_static /useenv |
| 39 | cd ..\.. |
| 40 | ) |
| 41 | |
| 42 | @rem OpenSSL |
| 43 | if not exist openssl-0.9.8a svn export http://svn.python.org/projects/external/openssl-0.9.8a |
| 44 | |
| 45 | @rem tcltk |
| 46 | if not exist tcl8.4.12 ( |
| 47 | if exist tcltk rd /s/q tcltk |
| 48 | svn export http://svn.python.org/projects/external/tcl8.4.12 |
| 49 | svn export http://svn.python.org/projects/external/tk8.4.12 |
| 50 | ) |