Changeset 220335 in webkit


Ignore:
Timestamp:
Aug 7, 2017 9:22:23 AM (7 years ago)
Author:
pvollan@apple.com
Message:

[Win] Use Visual Studio 2017 if installed.
https://bugs.webkit.org/show_bug.cgi?id=175188

Reviewed by Sam Weinig.

If installed, use VS2017 to build WebKit. If not, fall back to VS2015.

  • Scripts/webkitdirs.pm:

(visualStudioInstallDir):
(msBuildInstallDir):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r220329 r220335  
     12017-08-07  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [Win] Use Visual Studio 2017 if installed.
     4        https://bugs.webkit.org/show_bug.cgi?id=175188
     5
     6        Reviewed by Sam Weinig.
     7
     8        If installed, use VS2017 to build WebKit. If not, fall back to VS2015.
     9
     10        * Scripts/webkitdirs.pm:
     11        (visualStudioInstallDir):
     12        (msBuildInstallDir):
     13
    1142017-08-05  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Tools/Scripts/webkitdirs.pm

    r219728 r220335  
    573573        $vsInstallDir =~ s|[\\/]$||;
    574574    } else {
    575         $vsInstallDir = File::Spec->catdir(programFilesPath(), "Microsoft Visual Studio 14.0");
     575        $vsInstallDir = File::Spec->catdir(programFilesPath(), "Microsoft Visual Studio", "2017", "Community");
     576        if (not -e $vsInstallDir) {
     577            $vsInstallDir = File::Spec->catdir(programFilesPath(), "Microsoft Visual Studio 14.0");
     578        }
    576579    }
    577580    chomp($vsInstallDir = `cygpath "$vsInstallDir"`) if isCygwin();
     
    585588    return $msBuildInstallDir if defined $msBuildInstallDir;
    586589
    587     $msBuildInstallDir = File::Spec->catdir(programFilesPath(), "MSBuild", "14.0", "Bin");
    588    
     590    $msBuildInstallDir = File::Spec->catdir(programFilesPath(), "Microsoft Visual Studio", "2017", "Community", "MSBuild", "15.0", "Bin");
     591    if (not -e $msBuildInstallDir) {
     592        $msBuildInstallDir = File::Spec->catdir(programFilesPath(), "MSBuild", "14.0", "Bin");
     593    }
    589594    chomp($msBuildInstallDir = `cygpath "$msBuildInstallDir"`) if isCygwin();
    590595
Note: See TracChangeset for help on using the changeset viewer.