Skip to content

Commit 7cab0d0

Browse files
committed
Add support of Visual Studio 2019
1 parent 90a33a0 commit 7cab0d0

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

ClearScript/V8/ClearScriptV8/32/ClearScriptV8-32.vcxproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,18 @@
2929
<CLRSupport>true</CLRSupport>
3030
<CharacterSet>Unicode</CharacterSet>
3131
</PropertyGroup>
32-
<PropertyGroup Condition="'$(VisualStudioVersion)'=='15.0'">
32+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='16.0'" Label="VS2019 toolset selection">
33+
<PlatformToolset>v142</PlatformToolset>
34+
<WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)'==''">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
35+
</PropertyGroup>
36+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='15.0'" Label="VS2017 toolset selection">
3337
<PlatformToolset>v141</PlatformToolset>
3438
<WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)'==''">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
3539
</PropertyGroup>
36-
<PropertyGroup Condition="'$(VisualStudioVersion)'=='14.0'">
40+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='14.0'" Label="VS2015 toolset selection">
3741
<PlatformToolset>v140</PlatformToolset>
3842
</PropertyGroup>
39-
<PropertyGroup Condition="'$(VisualStudioVersion)'=='12.0'">
43+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='12.0'" Label="VS2013 toolset selection">
4044
<PlatformToolset>v120</PlatformToolset>
4145
</PropertyGroup>
4246
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />

ClearScript/V8/ClearScriptV8/64/ClearScriptV8-64.vcxproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,18 @@
2929
<CLRSupport>true</CLRSupport>
3030
<CharacterSet>Unicode</CharacterSet>
3131
</PropertyGroup>
32-
<PropertyGroup Condition="'$(VisualStudioVersion)'=='15.0'">
32+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='16.0'" Label="VS2019 toolset selection">
33+
<PlatformToolset>v142</PlatformToolset>
34+
<WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)'==''">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
35+
</PropertyGroup>
36+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='15.0'" Label="VS2017 toolset selection">
3337
<PlatformToolset>v141</PlatformToolset>
3438
<WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)'==''">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
3539
</PropertyGroup>
36-
<PropertyGroup Condition="'$(VisualStudioVersion)'=='14.0'">
40+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='14.0'" Label="VS2015 toolset selection">
3741
<PlatformToolset>v140</PlatformToolset>
3842
</PropertyGroup>
39-
<PropertyGroup Condition="'$(VisualStudioVersion)'=='12.0'">
43+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='12.0'" Label="VS2013 toolset selection">
4044
<PlatformToolset>v120</PlatformToolset>
4145
</PropertyGroup>
4246
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />

V8Update.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ goto Exit
7373
:CheckOSDone
7474

7575
:CheckMSVS
76-
if "%VisualStudioVersion%"=="15.0" goto UseMSVS2017
77-
echo Error: This script requires a Visual Studio 2017 Developer Command Prompt.
76+
if "%VisualStudioVersion%"=="15.0" goto CheckMSVSDone
77+
if "%VisualStudioVersion%"=="16.0" goto CheckMSVSDone
78+
echo Error: This script requires a Visual Studio 2017 or 2019 Developer Command Prompt.
7879
echo Browse to http://www.visualstudio.com for more information.
7980
goto Exit
80-
:UseMSVS2017
8181
:CheckMSVSDone
8282

8383
::-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)