From 966084a65a78636d7bfefe34aee3a25261fa8b66 Mon Sep 17 00:00:00 2001 From: Danny Scott Date: Mon, 29 Feb 2016 18:44:11 +0100 Subject: [PATCH] Add script for building MSVS 2015 binaries See #17408. (this is a backport of 7e493c3a3c85a0e0408a3de66096432c4a9a0791 from master) --- build/tools/msvs/build2015.bat | 64 ++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 build/tools/msvs/build2015.bat diff --git a/build/tools/msvs/build2015.bat b/build/tools/msvs/build2015.bat new file mode 100755 index 0000000000..df0c4a9b38 --- /dev/null +++ b/build/tools/msvs/build2015.bat @@ -0,0 +1,64 @@ +if "%1" == "" goto ERR_NOPARM +if "%2" == "" goto ERR_NOPARM +if "%3" == "" goto ERR_NOPARM + +cd c:\wxWidgets-%1.%2.%3\build\msw + +rem ================ VS 2015 Official Build =============== +rem +rem Copy this file to the \wxwidgets-x.y.z\build\msw folder +rem +rem Open a Visual Studio 2015 Developer command prompt. +rem +rem cd \wxwidgets-x.y.z\build\msw +rem build2015 +rem +rem ======================================================== + +rem Remove the existing destination folders if the exist so that a complete rebuild occurs. + +rmdir vc140_mswuddll /s /q +rmdir vc140_mswuddll_x64 /s /q +rmdir vc140_mswudll /s /q +rmdir vc140_mswudll_x64 /s /q + +rmdir ..\..\lib\vc140_dll /s /q +rmdir ..\..\lib\vc140_x64_dll /s /q + +rem Delete the build output files from the last run, if any. + +del 2015x86_Debug.txt +del 2015x86_Release.txt +del 2015x64_Debug.txt +del 2015x64_Release.txt + +call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 + +rem 64 bit release build +rem ------------------ +nmake -f makefile.vc BUILD=release SHARED=1 COMPILER_VERSION=140 OFFICIAL_BUILD=1 TARGET_CPU=AMD64 >> 2015x64_Release.txt + +rem 64 bit debug build +rem ------------------ +nmake -f makefile.vc BUILD=debug SHARED=1 COMPILER_VERSION=140 OFFICIAL_BUILD=1 TARGET_CPU=AMD64 >> 2015x64_Debug.txt + +call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 + +rem 32 bit release build +rem ------------------ +nmake -f makefile.vc BUILD=release SHARED=1 COMPILER_VERSION=140 OFFICIAL_BUILD=1 CPPFLAGS=/arch:SSE CFLAGS=/arch:SSE >> 2015x86_Release.txt + +rem 32 bit debug build +rem ------------------ +nmake -f makefile.vc BUILD=debug SHARED=1 COMPILER_VERSION=140 OFFICIAL_BUILD=1 CPPFLAGS=/arch:SSE CFLAGS=/arch:SSE >> 2015x86_Debug.txt + +goto End + +:ERR_NOPARM + @echo. + @echo ERROR: NO PARAMETER SUPPLIED + @echo MajorVers MinorVers BuildVers + +:End + +cd c:\wxWidgets