From 3c88857838ec468d443ec722321f5c285681ea5d Mon Sep 17 00:00:00 2001 From: Dawson Coleman Date: Tue, 8 Jan 2019 17:37:43 -0600 Subject: Update BUILDCONFIG.gn to support Visual Studio 2017 Enterprise Bug: skia: Change-Id: I7723a545d2f5ed78f6637aa9b8990e28785f86fb Reviewed-on: https://skia-review.googlesource.com/c/182191 Auto-Submit: Dawson Coleman Reviewed-by: Brian Osman Commit-Queue: Brian Osman --- gn/BUILDCONFIG.gn | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gn') diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn index 5a1c4d00b4..9f1d0be080 100644 --- a/gn/BUILDCONFIG.gn +++ b/gn/BUILDCONFIG.gn @@ -134,8 +134,10 @@ if (is_android) { msvc = "" if (target_os == "win") { - # By default we look for 2017 (Pro & Community), then 2015. If MSVC is installed in a + # By default we look for 2017 (Enterprise, Pro, and Community), then 2015. If MSVC is installed in a # non-default location, you can set win_vc to inform us where it is. + vc_2017_ent_default = + "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC" vc_2017_pro_default = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\VC" vc_2017_com_default = @@ -146,8 +148,13 @@ if (target_os == "win") { if (win_vc == "") { if ("True" == exec_script("//gn/checkdir.py", - [ "$vc_2017_pro_default" ], + [ "$vc_2017_ent_default" ], "trim string")) { + win_vc = vc_2017_ent_default + msvc = 2017 + } else if ("True" == exec_script("//gn/checkdir.py", + [ "$vc_2017_pro_default" ], + "trim string")) { win_vc = vc_2017_pro_default msvc = 2017 } else if ("True" == exec_script("//gn/checkdir.py", -- cgit v1.2.3