diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-07-03 08:58:04 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-07-03 08:58:04 +0900 |
commit | 0ce8e49b224300fe895f5cda6b8e45d80bbdf860 (patch) | |
tree | 69f8ae0a425b902921849272351131aacaca2a26 /src/tools/msvc/MSBuildProject.pm | |
parent | 90434e6f2cf9fb629069b1b3017ea1a2c1ab07eb (diff) |
Add support for Visual Studio 2019 in build scripts
This adjusts the documentation and the scripts related to the versions
of Windows SDK supported.
Author: Haribabu Kommi
Reviewed-by: Andrew Dunstan, Juan José SantamarÃa Flecha, Michael
Paquier
Discussion: https://postgr.es/m/CAJrrPGcfqXhfPyMrny9apoDU7M1t59dzVAvoJ9AeAh5BJi+UzA@mail.gmail.com
Backpatch-through: 9.4
Diffstat (limited to 'src/tools/msvc/MSBuildProject.pm')
-rw-r--r-- | src/tools/msvc/MSBuildProject.pm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm index 9ddccc7c554..d0f2fe7779e 100644 --- a/src/tools/msvc/MSBuildProject.pm +++ b/src/tools/msvc/MSBuildProject.pm @@ -508,4 +508,29 @@ sub new return $self; } +package VC2019Project; + +# +# Package that encapsulates a Visual C++ 2019 project file +# + +use strict; +use warnings; +use base qw(VC2012Project); + +no warnings qw(redefine); ## no critic + +sub new +{ + my $classname = shift; + my $self = $classname->SUPER::_new(@_); + bless($self, $classname); + + $self->{vcver} = '16.00'; + $self->{PlatformToolset} = 'v142'; + $self->{ToolsVersion} = '16.0'; + + return $self; +} + 1; |