This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/wxWidgets-3.0.5/build/tools/msvs/build2013.bat

65 lines
1.7 KiB
Batchfile

set origin_dir=%cd%
if "%1" == "" goto ERR_NOPARM
if "%2" == "" goto ERR_NOPARM
if "%3" == "" goto ERR_NOPARM
cd ..\..\msw
rem ================ VS 2013 Official Build ===============
rem
rem Open a Visual Studio 2013 Developer command prompt.
rem
rem cd \wxwidgets\build\tools\msvs
rem build2013 x y z
rem
rem ========================================================
rem Remove the existing destination folders if the exist so that a complete rebuild occurs.
rmdir vc120_mswuddll /s /q
rmdir vc120_mswuddll_x64 /s /q
rmdir vc120_mswudll /s /q
rmdir vc120_mswudll_x64 /s /q
rmdir ..\..\lib\vc120_dll /s /q
rmdir ..\..\lib\vc120_x64_dll /s /q
rem Delete the build output files from the last run, if any.
del 2013x86_Debug.txt
del 2013x86_Release.txt
del 2013x64_Debug.txt
del 2013x64_Release.txt
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
rem 64 bit release build
rem ------------------
nmake -f makefile.vc BUILD=release SHARED=1 COMPILER_VERSION=120 OFFICIAL_BUILD=1 TARGET_CPU=AMD64 >> 2013x64_Release.txt
rem 64 bit debug build
rem ------------------
nmake -f makefile.vc BUILD=debug SHARED=1 COMPILER_VERSION=120 OFFICIAL_BUILD=1 TARGET_CPU=AMD64 >> 2013x64_Debug.txt
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
rem 32 bit release build
rem ------------------
nmake -f makefile.vc BUILD=release SHARED=1 COMPILER_VERSION=120 OFFICIAL_BUILD=1 >> 2013x86_Release.txt
rem 32 bit debug build
rem ------------------
nmake -f makefile.vc BUILD=debug SHARED=1 COMPILER_VERSION=120 OFFICIAL_BUILD=1 >> 2013x86_Debug.txt
goto End
:ERR_NOPARM
@echo.
@echo ERROR: NO PARAMETER SUPPLIED
@echo MajorVers MinorVers BuildVers
:End
cd %origin_dir%