build2005.bat 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. if "%1" == "" goto ERR_NOPARM
  2. if "%2" == "" goto ERR_NOPARM
  3. if "%3" == "" goto ERR_NOPARM
  4. cd c:\wxWidgets-%1.%2.%3\build\msw
  5. rem
  6. rem Copy this file to the \wxwidgets-x.y.z\build\msw folder
  7. rem
  8. rem Open a Visual Studio 2005 command prompt.
  9. rem
  10. rem cd \wxwidgets-x.y.z\build\msw
  11. rem build2005
  12. rem
  13. rem ========================================================
  14. rem Set the path if necessary.
  15. set INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\INCLUDE;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\INCLUDE\gl;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\INCLUDE\crt;
  16. set LIB=C:\Program Files (x86)\Microsoft Visual Studio 8\VC\lib;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\X64
  17. set LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio 8\VC\lib;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\AMD64
  18. rem Remove the existing destination folders if the exist so that a complete rebuild occurs.
  19. rmdir vc80_mswudll /s /q
  20. rmdir vc80_mswuddll /s /q
  21. rmdir ..\..\lib\vc80_dll /s /q
  22. rem Delete the build output files from the last run, if any.
  23. del 2005x86_Debug.txt
  24. del 2005x86_Release.txt
  25. nmake -f makefile.vc BUILD=debug SHARED=1 OFFICIAL_BUILD=1 COMPILER_VERSION=80 >> 2005x86_Debug.txt
  26. nmake -f makefile.vc BUILD=release SHARED=1 OFFICIAL_BUILD=1 COMPILER_VERSION=80 >> 2005x86_Release.txt
  27. goto End
  28. :ERR_NOPARM
  29. @echo.
  30. @echo ERROR: NO PARAMETER SUPPLIED
  31. @echo MajorVers MinorVers BuildVers
  32. :End
  33. cd c:\wxWidgets