Changeset 195746 in webkit


Ignore:
Timestamp:
Jan 28, 2016 9:44:05 AM (8 years ago)
Author:
Chris Dumez
Message:

Unreviewed, rolling out r195742.

Broke EWS

Reverted changeset:

"[webkitdirs] Clarify logic behind is{PortName} functions."
https://bugs.webkit.org/show_bug.cgi?id=153554
http://trac.webkit.org/changeset/195742

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r195743 r195746  
     12016-01-28  Chris Dumez  <cdumez@apple.com>
     2
     3        Unreviewed, rolling out r195742.
     4
     5        Broke EWS
     6
     7        Reverted changeset:
     8
     9        "[webkitdirs] Clarify logic behind is{PortName} functions."
     10        https://bugs.webkit.org/show_bug.cgi?id=153554
     11        http://trac.webkit.org/changeset/195742
     12
    1132016-01-28  Darin Adler  <darin@apple.com>
    214
  • trunk/Tools/Scripts/webkitdirs.pm

    r195742 r195746  
    9595}
    9696
    97 # Ports
    98 use constant {
    99     AppleWin => "AppleWin",
    100     GTK      => "GTK",
    101     Efl      => "Efl",
    102     iOS      => "iOS",
    103     Mac      => "Mac",
    104     WinCairo => "WinCairo"
    105 };
    106 
    10797use constant USE_OPEN_COMMAND => 1; # Used in runMacWebKitApp().
    10898use constant INCLUDE_OPTIONS_FOR_DEBUGGING => 1;
     
    135125my $generateDsym;
    136126my $isCMakeBuild;
     127my $isGtk;
     128my $isWinCairo;
    137129my $isWin64;
     130my $isEfl;
    138131my $isInspectorFrontend;
    139 my $portName;
    140132my $shouldTargetWebProcess;
    141133my $shouldUseXPCServiceForWebProcess;
     
    10331025}
    10341026
    1035 sub determinePortName()
    1036 {
    1037     return if defined $portName;
    1038 
    1039     my %argToPortName = (
    1040         efl => Efl,
    1041         gtk => GTK,
    1042         wincairo => WinCairo
    1043     );
    1044 
    1045     for my $arg (sort keys %argToPortName) {
    1046         if (checkForArgumentAndRemoveFromARGV("--$arg")) {
    1047             die "Argument '--$arg' conflicts with selected port '$portName'"
    1048                 if defined $portName;
    1049 
    1050             $portName = $argToPortName{$arg};
    1051         }
    1052     }
    1053 
    1054     return if defined $portName;
    1055 
    1056     # Port was not selected via command line, use appropriate default value
    1057 
    1058     if (isAnyWindows()) {
    1059         $portName = AppleWin;
    1060     } elsif (isDarwin()) {
    1061         determineXcodeSDK();
    1062         if (willUseIOSDeviceSDK() || willUseIOSSimulatorSDK()) {
    1063             $portName = iOS;
    1064         } else {
    1065             $portName = Mac;
    1066         }
    1067     } else {
    1068         die "Please choose which WebKit port to build";
    1069     }
    1070 }
    1071 
    1072 sub portName()
    1073 {
    1074     determinePortName();
    1075     return $portName;
     1027sub determineIsEfl()
     1028{
     1029    return if defined($isEfl);
     1030    $isEfl = checkForArgumentAndRemoveFromARGV("--efl");
    10761031}
    10771032
    10781033sub isEfl()
    10791034{
    1080     return portName() eq Efl;
     1035    determineIsEfl();
     1036    return $isEfl;
     1037}
     1038
     1039sub determineIsGtk()
     1040{
     1041    return if defined($isGtk);
     1042    $isGtk = checkForArgumentAndRemoveFromARGV("--gtk");
    10811043}
    10821044
    10831045sub isGtk()
    10841046{
    1085     return portName() eq GTK;
     1047    determineIsGtk();
     1048    return $isGtk;
    10861049}
    10871050
     
    10991062sub isWinCairo()
    11001063{
    1101     return portName() eq WinCairo;
     1064    determineIsWinCairo();
     1065    return $isWinCairo;
     1066}
     1067
     1068sub determineIsWinCairo()
     1069{
     1070    return if defined($isWinCairo);
     1071    $isWinCairo = checkForArgumentAndRemoveFromARGV("--wincairo");
    11021072}
    11031073
     
    12221192sub isAppleMacWebKit()
    12231193{
    1224     return (portName() eq Mac) || isIOSWebKit();
     1194    return isDarwin() && !isGtk();
    12251195}
    12261196
    12271197sub isAppleWinWebKit()
    12281198{
    1229     return portName() eq AppleWin;
     1199    return (isCygwin() || isWindows()) && !isWinCairo() && !isGtk();
    12301200}
    12311201
     
    12901260sub isIOSWebKit()
    12911261{
    1292     return portName() eq iOS;
     1262    determineXcodeSDK();
     1263    return isAppleMacWebKit() && (willUseIOSDeviceSDK() || willUseIOSSimulatorSDK());
    12931264}
    12941265
     
    20912062sub cmakeBasedPortName()
    20922063{
    2093     return portName();
     2064    return "Efl" if isEfl();
     2065    return "GTK" if isGtk();
     2066    return "Mac" if isAppleMacWebKit();
     2067    return "WinCairo" if isWinCairo();
     2068    return "AppleWin" if isAppleWinWebKit();
     2069    return "";
    20942070}
    20952071
Note: See TracChangeset for help on using the changeset viewer.