WinRT: made WinRT build script create Win10/UWP .dll files
authorDavid Ludwig <dludwig@pobox.com>
Mon, 30 Nov 2015 21:11:33 -0500
changeset 993593fd2ca0ed98
parent 9934 0172d5616a83
child 9936 69a5f3a540af
WinRT: made WinRT build script create Win10/UWP .dll files
build-scripts/winrtbuild.ps1
     1.1 --- a/build-scripts/winrtbuild.ps1	Mon Nov 30 10:39:34 2015 -0500
     1.2 +++ b/build-scripts/winrtbuild.ps1	Mon Nov 30 21:11:33 2015 -0500
     1.3 @@ -59,6 +59,9 @@
     1.4      if ($PlatformToolset -eq "v120_wp81") { # Windows Phone 8.1, via VS 2013
     1.5          return "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
     1.6      }
     1.7 +    if ($PlatformToolset -eq "v140") {      # Windows 10, via VS 2015
     1.8 +        return "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
     1.9 +    }
    1.10      return ""
    1.11  }
    1.12  
    1.13 @@ -102,6 +105,13 @@
    1.14              return "WinPhone81"
    1.15          }
    1.16      }
    1.17 +    if ($PlatformToolset -eq "v140") {      # Windows 10, via VS 2015 project files
    1.18 +        if ($IncludeVSSuffix) {
    1.19 +            return "UWP_VS2015"
    1.20 +        } else {
    1.21 +            return "UWP"
    1.22 +        }
    1.23 +    }
    1.24      return ""
    1.25  }
    1.26  
    1.27 @@ -216,6 +226,11 @@
    1.28  if ( ! (Build-SDL-WinRT-Variant "SDL" "v120" "Win32"))      { $DidAnyFail = $true }
    1.29  if ( ! (Build-SDL-WinRT-Variant "SDL" "v120" "x64"))        { $DidAnyFail = $true }
    1.30  
    1.31 +# Build for Windows 10, via VC++ 2015
    1.32 +if ( ! (Build-SDL-WinRT-Variant "SDL" "v140" "ARM"))        { $DidAnyFail = $true }
    1.33 +if ( ! (Build-SDL-WinRT-Variant "SDL" "v140" "Win32"))      { $DidAnyFail = $true }
    1.34 +if ( ! (Build-SDL-WinRT-Variant "SDL" "v140" "x64"))        { $DidAnyFail = $true }
    1.35 +
    1.36  # Let the script's caller know whether or not any errors occurred.
    1.37  # Exit codes compatible with Buildbot are used (1 for error, 0 for success).
    1.38  if ($DidAnyFail -eq $true) {