From 955b2aa71e4ff79b3d0746b432d6cc4741b8d504 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 12 Jun 2017 14:46:01 +0100 Subject: [PATCH] Projucer: Made the default Windows target platform version 8.1 for VS2013 and VS2015 exporters and 10.0.15063.0 for VS2017 exporters --- .../Source/Project Saving/jucer_ProjectExport_MSVC.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index 12bd0992f6..5657e11331 100644 --- a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -1642,6 +1642,7 @@ public: Value getIPPLibraryValue() { return getSetting (Ids::IPPLibrary); } String getIPPLibrary() const { return settings [Ids::IPPLibrary]; } virtual String getCppLanguageStandard() const { return {}; } + virtual String getDefaultWindowsTargetPlatformVersion() const { return "8.1"; } String getPlatformToolset() const { @@ -1807,7 +1808,7 @@ public: String getWindowsTargetPlatformVersion() const { String targetPlatform = settings [Ids::windowsTargetPlatformVersion]; - return (targetPlatform.isNotEmpty() ? targetPlatform : String ("10.0.14393.0")); + return (targetPlatform.isNotEmpty() ? targetPlatform : getDefaultWindowsTargetPlatformVersion()); } static MSVCProjectExporterVC2012* createForSettings (Project& project, const ValueTree& settings) @@ -1836,7 +1837,8 @@ public: props.add (new ChoicePropertyComponent (getWindowsTargetPlatformVersionValue(), "Windows Target Platform", StringArray (targetPlatformNames), Array (targetPlatforms, numElementsInArray (targetPlatforms))), - "The Windows target platform version to use"); + "Specifies the version of the Windows SDK that will be used when building this project. " + "The default value for this exporter is " + getDefaultWindowsTargetPlatformVersion()); } private: @@ -1955,6 +1957,8 @@ public: String getToolsVersion() const override { return "15.0"; } String getDefaultToolset() const override { return "v141"; } + String getDefaultWindowsTargetPlatformVersion() const override { return "10.0.15063.0"; } + static MSVCProjectExporterVC2017* createForSettings (Project& project, const ValueTree& settings) { if (settings.hasType (getValueTreeTypeName()))