Title: [237623] trunk/Tools
Revision
237623
Author
[email protected]
Date
2018-10-30 22:05:31 -0700 (Tue, 30 Oct 2018)

Log Message

[Win] Remove obsolete code for Visual Studio Express in webkitdirs.pm
https://bugs.webkit.org/show_bug.cgi?id=190949

Reviewed by Alex Christensen.

Visual Studio 2017 Community is the alternative.

* Scripts/webkitdirs.pm: Remove $willUseVCExpressWhenBuilding variable.
(setupCygwinEnv): Remove obsolete code for Visual Studio Express.
(buildVisualStudioProject): Ditto.
(dieIfWindowsPlatformSDKNotInstalled): Deleted.
(usingVisualStudioExpress): Deleted.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (237622 => 237623)


--- trunk/Tools/ChangeLog	2018-10-31 04:48:43 UTC (rev 237622)
+++ trunk/Tools/ChangeLog	2018-10-31 05:05:31 UTC (rev 237623)
@@ -1,5 +1,20 @@
 2018-10-30  Fujii Hironori  <[email protected]>
 
+        [Win] Remove obsolete code for Visual Studio Express in webkitdirs.pm
+        https://bugs.webkit.org/show_bug.cgi?id=190949
+
+        Reviewed by Alex Christensen.
+
+        Visual Studio 2017 Community is the alternative.
+
+        * Scripts/webkitdirs.pm: Remove $willUseVCExpressWhenBuilding variable.
+        (setupCygwinEnv): Remove obsolete code for Visual Studio Express.
+        (buildVisualStudioProject): Ditto.
+        (dieIfWindowsPlatformSDKNotInstalled): Deleted.
+        (usingVisualStudioExpress): Deleted.
+
+2018-10-30  Fujii Hironori  <[email protected]>
+
         [Win][Direct2D] Support building DumpRenderTree for Direct2D
         https://bugs.webkit.org/show_bug.cgi?id=191093
         <rdar://problem/45685706>

Modified: trunk/Tools/Scripts/webkitdirs.pm (237622 => 237623)


--- trunk/Tools/Scripts/webkitdirs.pm	2018-10-31 04:48:43 UTC (rev 237622)
+++ trunk/Tools/Scripts/webkitdirs.pm	2018-10-31 05:05:31 UTC (rev 237623)
@@ -166,7 +166,6 @@
 my $vsVersion;
 my $windowsSourceDir;
 my $winVersion;
-my $willUseVCExpressWhenBuilding = 0;
 my $vsWhereFoundInstallation;
 
 # Defined in VCSUtils.
@@ -1896,20 +1895,6 @@
 
     my $programFilesPath = programFilesPath();
     my $visualStudioPath = File::Spec->catfile(visualStudioInstallDir(), qw(Common7 IDE devenv.com));
-    if (!-e $visualStudioPath) {
-        # Visual Studio not found, try VC++ Express
-        $visualStudioPath = File::Spec->catfile(visualStudioInstallDir(), qw(Common7 IDE WDExpress.exe));
-        if (! -e $visualStudioPath) {
-            print "*************************************************************\n";
-            print "Cannot find '$visualStudioPath'\n";
-            print "Please execute the file 'vcvars32.bat' from\n";
-            print "your Visual Studio 2017 installation\n";
-            print "to setup the necessary environment variables.\n";
-            print "*************************************************************\n";
-            die;
-        }
-        $willUseVCExpressWhenBuilding = 1;
-    }
 
     print "Building results into: ", baseProductDir(), "\n";
     print "WEBKIT_OUTPUTDIR is set to: ", $ENV{"WEBKIT_OUTPUTDIR"}, "\n";
@@ -1930,37 +1915,6 @@
     }
 }
 
-sub dieIfWindowsPlatformSDKNotInstalled
-{
-    my $registry32Path = "/proc/registry/";
-    my $registry64Path = "/proc/registry64/";
-    my @windowsPlatformSDKRegistryEntries = (
-        "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v8.0A",
-        "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v8.0",
-        "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v7.1A",
-        "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v7.0A",
-        "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/InstalledSDKs/D2FF9F89-8AA2-4373-8A31-C838BF4DBBE1",
-    );
-
-    # FIXME: It would be better to detect whether we are using 32- or 64-bit Windows
-    # and only check the appropriate entry. But for now we just blindly check both.
-    my $recommendedPlatformSDK = $windowsPlatformSDKRegistryEntries[0];
-
-    while (@windowsPlatformSDKRegistryEntries) {
-        my $windowsPlatformSDKRegistryEntry = shift @windowsPlatformSDKRegistryEntries;
-        return if (-e $registry32Path . $windowsPlatformSDKRegistryEntry) || (-e $registry64Path . $windowsPlatformSDKRegistryEntry);
-    }
-
-    print "*************************************************************\n";
-    print "Cannot find registry entry '$recommendedPlatformSDK'.\n";
-    print "Please download and install the Microsoft Windows SDK\n";
-    print "from <http://www.microsoft.com/en-us/download/details.aspx?id=8279>.\n\n";
-    print "Then follow step 2 in the Windows section of the \"Installing Developer\n";
-    print "Tools\" instructions at <http://www.webkit.org/building/tools.html>.\n";
-    print "*************************************************************\n";
-    die;
-}
-
 sub buildXCodeProject($$@)
 {
     my ($project, $clean, @extraOptions) = @_;
@@ -1974,12 +1928,6 @@
     return system "xcodebuild", "-project", "$project.xcodeproj", @extraOptions;
 }
 
-sub usingVisualStudioExpress()
-{
-    setupCygwinEnv();
-    return $willUseVCExpressWhenBuilding;
-}
-
 sub getMSBuildPlatformArgument()
 {
     if (isPlayStation()) {
@@ -1998,8 +1946,6 @@
 
     my $config = configurationForVisualStudio();
 
-    dieIfWindowsPlatformSDKNotInstalled() if $willUseVCExpressWhenBuilding;
-
     chomp($project = `cygpath -w "$project"`) if isCygwin();
 
     my $action = ""
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to