Changeset 231978 in webkit
- Timestamp:
- May 18, 2018 12:33:35 PM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r231977 r231978 1 2018-05-18 Daniel Bates <dabates@apple.com> 2 3 "debug-safari --ios-simulator" creates lldb target to launch Mac Safari 4 https://bugs.webkit.org/show_bug.cgi?id=185774 5 6 Reviewed by Andy Estes. 7 8 For now, the script debug-safari is not supported for WebKit for iOS. To 9 fix this we differentiate between the Apple Mac port and Apple embedded 10 ports. 11 12 * Scripts/webkitdirs.pm: 13 (safariPath): Substitute isAppleMacWebKit() for isAppleCocoaWebKit(). 14 (isAppleMacWebKit): Added. 15 (isAppleCocoaWebKit): Write in terms of isAppleMacWebKit() and isEmbeddedWebKit(). 16 (launcherName): Substitute isAppleMacWebKit() for isAppleCocoaWebKit(). 17 (mobileSafariBundle): Substitute isIOSWebKit() for isAppleCocoaWebKit(). 18 (debugSafari): Substitute isAppleMacWebKit() for isAppleCocoaWebKit(). 19 (runSafari): Ditto. 20 (runMiniBrowser): Ditto. 21 (debugMiniBrowser): Ditto. 22 (runWebKitTestRunner): Ditto. 23 (debugWebKitTestRunner): Ditto. 24 1 25 2018-05-18 Antoine Quint <graouts@apple.com> 2 26 -
trunk/Tools/Scripts/webkitdirs.pm
r231677 r231978 990 990 sub safariPath 991 991 { 992 die "Safari path is only relevant on Apple Mac platform\n" unless isApple CocoaWebKit();992 die "Safari path is only relevant on Apple Mac platform\n" unless isAppleMacWebKit(); 993 993 994 994 my $safariPath; … … 1374 1374 } 1375 1375 1376 sub isIOSWebKit() 1377 { 1378 return portName() eq iOS; 1379 } 1380 1381 sub isTVOSWebKit() 1382 { 1383 return portName() eq tvOS; 1384 } 1385 1386 sub isWatchOSWebKit() 1387 { 1388 return portName() eq watchOS; 1389 } 1390 1391 sub isEmbeddedWebKit() 1392 { 1393 return isIOSWebKit() || isTVOSWebKit() || isWatchOSWebKit(); 1394 } 1395 1376 1396 sub isAppleWebKit() 1377 1397 { … … 1379 1399 } 1380 1400 1401 sub isAppleMacWebKit() 1402 { 1403 return portName() eq Mac; 1404 } 1405 1381 1406 sub isAppleCocoaWebKit() 1382 1407 { 1383 return (portName() eq Mac) || isIOSWebKit() || isTVOSWebKit() || isWatchOSWebKit();1408 return isAppleMacWebKit() || isEmbeddedWebKit(); 1384 1409 } 1385 1410 … … 1465 1490 { 1466 1491 return xcodeSDKPlatformName() eq "watchsimulator"; 1467 }1468 1469 sub isIOSWebKit()1470 {1471 return portName() eq iOS;1472 }1473 1474 sub isTVOSWebKit()1475 {1476 return portName() eq tvOS;1477 }1478 1479 sub isWatchOSWebKit()1480 {1481 return portName() eq watchOS;1482 }1483 1484 sub isEmbeddedWebKit()1485 {1486 return isIOSWebKit() || isTVOSWebKit() || isWatchOSWebKit();1487 1492 } 1488 1493 … … 1648 1653 if (isGtk()) { 1649 1654 return "MiniBrowser"; 1650 } elsif (isApple CocoaWebKit()) {1655 } elsif (isAppleMacWebKit()) { 1651 1656 return "Safari"; 1652 1657 } elsif (isAppleWinWebKit()) { … … 2411 2416 2412 2417 # Use MobileSafari.app in product directory if present. 2413 if (is AppleCocoaWebKit() && -d "$configurationProductDir/MobileSafari.app") {2418 if (isIOSWebKit() && -d "$configurationProductDir/MobileSafari.app") { 2414 2419 return "$configurationProductDir/MobileSafari.app"; 2415 2420 } … … 2724 2729 sub debugSafari 2725 2730 { 2726 if (isApple CocoaWebKit()) {2731 if (isAppleMacWebKit()) { 2727 2732 checkFrameworks(); 2728 2733 execMacWebKitAppForDebugging(safariPath()); … … 2738 2743 } 2739 2744 2740 if (isApple CocoaWebKit()) {2745 if (isAppleMacWebKit()) { 2741 2746 return runMacWebKitApp(safariPath()); 2742 2747 } … … 2753 2758 sub runMiniBrowser 2754 2759 { 2755 if (isApple CocoaWebKit()) {2760 if (isAppleMacWebKit()) { 2756 2761 return runMacWebKitApp(File::Spec->catfile(productDir(), "MiniBrowser.app", "Contents", "MacOS", "MiniBrowser")); 2757 } elsif (isAppleWinWebKit()) {2758 my $result;2762 } 2763 if (isAppleWinWebKit()) { 2759 2764 my $webKitLauncherPath = File::Spec->catfile(executableProductDir(), "MiniBrowser.exe"); 2760 2765 return system { $webKitLauncherPath } $webKitLauncherPath, @ARGV; 2761 2766 } 2762 2763 2767 return 1; 2764 2768 } … … 2766 2770 sub debugMiniBrowser 2767 2771 { 2768 if (isApple CocoaWebKit()) {2772 if (isAppleMacWebKit()) { 2769 2773 execMacWebKitAppForDebugging(File::Spec->catfile(productDir(), "MiniBrowser.app", "Contents", "MacOS", "MiniBrowser")); 2770 2774 } … … 2775 2779 sub runWebKitTestRunner 2776 2780 { 2777 if (isApple CocoaWebKit()) {2781 if (isAppleMacWebKit()) { 2778 2782 return runMacWebKitApp(File::Spec->catfile(productDir(), "WebKitTestRunner")); 2779 2783 } … … 2784 2788 sub debugWebKitTestRunner 2785 2789 { 2786 if (isApple CocoaWebKit()) {2790 if (isAppleMacWebKit()) { 2787 2791 execMacWebKitAppForDebugging(File::Spec->catfile(productDir(), "WebKitTestRunner")); 2788 2792 }
Note: See TracChangeset
for help on using the changeset viewer.