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 |
| 10 | cd .. |
| 11 | |
| 12 | @rem sqlite |
| 13 | if not exist sqlite-source-3.3.4 ( |
| 14 | svn export http://svn.python.org/projects/external/sqlite-source-3.3.4 |
| 15 | if exist build\PCbuild\sqlite3.dll del build\PCbuild\sqlite3.dll |
| 16 | ) |
| 17 | if not exist build\PCbuild\sqlite3.dll ( |
| 18 | cd sqlite-source-3.3.4\amd64 |
| 19 | cl ..\*.c |
| 20 | link /def:..\sqlite3.def /dll *.obj /out:sqlite3.dll bufferoverflowU.lib |
| 21 | cd ..\.. |
| 22 | copy sqlite-source-3.3.4\amd64\sqlite3.dll build\PCbuild |
| 23 | ) |
| 24 | |
| 25 | @rem bzip |
| 26 | if not exist bzip2-1.0.3 svn export http://svn.python.org/projects/external/bzip2-1.0.3 |
| 27 | |
| 28 | @rem Sleepycat db |
| 29 | if not exist db-4.4.20 svn export http://svn.python.org/projects/external/db-4.4.20 |
| 30 | if not exist "db-4.4.20\build_win32\Release_AMD64\libdb44s.lib" ( |
| 31 | cd db-4.4.20\build_win32 |
| 32 | devenv Berkeley_DB.sln /build "Release AMD64" /project db_static /useenv |
| 33 | cd ..\.. |
| 34 | ) |
| 35 | |
| 36 | @rem OpenSSL |
| 37 | if not exist openssl-0.9.8a svn export http://svn.python.org/projects/external/openssl-0.9.8a |
| 38 | |
| 39 | @rem tcltk |
| 40 | if not exist tcl8.4.12 ( |
| 41 | if exist tcltk rd /s/q tcltk |
| 42 | svn export http://svn.python.org/projects/external/tcl8.4.12 |
| 43 | svn export http://svn.python.org/projects/external/tk8.4.12 |
| 44 | ) |