From 5b32b25cbcb3e82ad974f242ef2bd1a39aa5ec6d Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Mon, 9 Oct 2017 16:13:17 -0700 Subject: [PATCH] Add VS2015 support back to the uwp scripts Official build machines don't yet have VS2017 so adding back VS2015 support until that is fixed Commit migrated from https://github.com/dotnet/core-setup/commit/82f5a2c230b04cc9559a3adb7c2708e292f5f307 --- src/installer/uwp/Windows/gen-buildsys-win.bat | 4 ++++ src/installer/uwp/build.cmd | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/installer/uwp/Windows/gen-buildsys-win.bat b/src/installer/uwp/Windows/gen-buildsys-win.bat index 72df643..81d6efd 100644 --- a/src/installer/uwp/Windows/gen-buildsys-win.bat +++ b/src/installer/uwp/Windows/gen-buildsys-win.bat @@ -16,7 +16,11 @@ echo %5 setlocal set __sourceDir=%1 + +set __VSString=14 2015 +if "%__VSVersion%" == "vs2017" ( set __VSString=15 2017 +) :: Set the target architecture to a format cmake understands. ANYCPU defaults to x64 set cm_BaseRid=win10-%2 diff --git a/src/installer/uwp/build.cmd b/src/installer/uwp/build.cmd index 4e9b956..4b2d001 100644 --- a/src/installer/uwp/build.cmd +++ b/src/installer/uwp/build.cmd @@ -59,11 +59,25 @@ exit /b 1 :VS2017 :: Setup vars for VS2017 +set __VSVersion=vs2017 set __PlatformToolset=v141 if NOT "%__BuildArch%" == "arm64" ( :: Set the environment for the native build call "%VS150COMNTOOLS%..\..\VC\Auxiliary\Build\vcvarsall.bat" %__VCBuildArch% ) +goto :SetupDirs + +:VS2015 +:: Setup vars for VS2015build +set __VSVersion=vs2015 +set __PlatformToolset=v140 +if NOT "%__BuildArch%" == "arm64" ( + :: Set the environment for the native build + call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" %__VCBuildArch% +) + +:SetupDirs + :: Setup to cmake the native components echo Commencing build of native UWP components echo. -- 2.7.4