<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[178753] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/178753">178753</a></dd>
<dt>Author</dt> <dd>ddkilzer@apple.com</dd>
<dt>Date</dt> <dd>2015-01-20 13:49:47 -0800 (Tue, 20 Jan 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Switch to comparing PLATFORM_NAME in terms of macosx
&lt;http://webkit.org/b/139516&gt;

Reviewed by Timothy Hatcher.

Source/WebCore:

* bindings/scripts/preprocessor.pm:
(applyPreprocessor):
* generate-export-file:
(preprocessorMacros):

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/mac:

* MigrateHeaders.make:
* postprocess-headers.sh:

Source/WebKit2:

* WebKit2.xcodeproj/project.pbxproj:
* mac/rewrite-availability-macros.sh: Remove the else block that
checked for an unknown PLATFORM_NAME.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptspreprocessorpm">trunk/Source/WebCore/bindings/scripts/preprocessor.pm</a></li>
<li><a href="#trunkSourceWebCoregenerateexportfile">trunk/Source/WebCore/generate-export-file</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebKitxcodeprojprojectpbxproj">trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacMigrateHeadersmake">trunk/Source/WebKit/mac/MigrateHeaders.make</a></li>
<li><a href="#trunkSourceWebKitmacpostprocessheaderssh">trunk/Source/WebKit/mac/postprocess-headers.sh</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj">trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebKit2macrewriteavailabilitymacrossh">trunk/Source/WebKit2/mac/rewrite-availability-macros.sh</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebCore/ChangeLog        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2015-01-20  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Switch to comparing PLATFORM_NAME in terms of macosx
+        &lt;http://webkit.org/b/139516&gt;
+
+        Reviewed by Timothy Hatcher.
+
+        * bindings/scripts/preprocessor.pm:
+        (applyPreprocessor):
+        * generate-export-file:
+        (preprocessorMacros):
+
</ins><span class="cx"> 2015-01-20  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Attempt to fix 32bits builds after r178743
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptspreprocessorpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/preprocessor.pm (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/preprocessor.pm        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebCore/bindings/scripts/preprocessor.pm        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx">     if ($Config::Config{&quot;osname&quot;} eq &quot;darwin&quot;) {
</span><span class="cx">         push(@args, &quot;-I&quot; . $ENV{BUILT_PRODUCTS_DIR} . &quot;/usr/local/include&quot;) if $ENV{BUILT_PRODUCTS_DIR};
</span><span class="cx">         push(@args, &quot;-isysroot&quot;, $ENV{SDKROOT}) if $ENV{SDKROOT};
</span><del>-        $defines .= &quot; WTF_PLATFORM_IOS&quot; if defined $ENV{PLATFORM_NAME} &amp;&amp; $ENV{PLATFORM_NAME} =~ /iphone(os|simulator)/;
</del><ins>+        $defines .= &quot; WTF_PLATFORM_IOS&quot; if defined $ENV{PLATFORM_NAME} &amp;&amp; $ENV{PLATFORM_NAME} !~ /macosx/;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Remove double quotations from $defines and extract macros.
</span></span></pre></div>
<a id="trunkSourceWebCoregenerateexportfile"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/generate-export-file (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/generate-export-file        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebCore/generate-export-file        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -85,10 +85,10 @@
</span><span class="cx">     # Xcode 3.1 is required for SDKROOT to be set.
</span><span class="cx">     if (exists $ENV{SYSTEM_LIBRARY_DIR} &amp;&amp; $ENV{SYSTEM_LIBRARY_DIR}) {
</span><span class="cx">         my $frameworkSearchPath = $ENV{SDKROOT} . $ENV{SYSTEM_LIBRARY_DIR};
</span><del>-        if ($ENV{PLATFORM_NAME} eq &quot;iphoneos&quot; || $ENV{PLATFORM_NAME} eq &quot;iphonesimulator&quot;) {
</del><ins>+        if (!defined $ENV{PLATFORM_NAME} || $ENV{PLATFORM_NAME} =~ /macosx/) {
+            $frameworkSearchPath .= &quot;/Frameworks&quot;;
+        } else {
</ins><span class="cx">             $frameworkSearchPath .= &quot;/PrivateFrameworks&quot;;
</span><del>-        } else {
-            $frameworkSearchPath .= &quot;/Frameworks&quot;;
</del><span class="cx">         }
</span><span class="cx">         push(@args, &quot;-F&quot; . $frameworkSearchPath);
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebKit/ChangeLog        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2015-01-20  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Switch to comparing PLATFORM_NAME in terms of macosx
+        &lt;http://webkit.org/b/139516&gt;
+
+        Reviewed by Timothy Hatcher.
+
+        * WebKit.xcodeproj/project.pbxproj:
+
</ins><span class="cx"> 2015-01-19  Anders Carlsson  &lt;andersca@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Try to fix build warnings with newer versions of clang.
</span></span></pre></div>
<a id="trunkSourceWebKitWebKitxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -2086,7 +2086,7 @@
</span><span class="cx">                         );
</span><span class="cx">                         runOnlyForDeploymentPostprocessing = 0;
</span><span class="cx">                         shellPath = /bin/sh;
</span><del>-                        shellScript = &quot;if [[ ${PLATFORM_NAME} == \&quot;iphoneos\&quot; || ${PLATFORM_NAME} == \&quot;iphonesimulator\&quot; ]]; then\n    exit 0\nfi\n\n# Prior to r172595, WebKitPluginHost.app and WebKitPluginAgent lived at the top level of the framework. Replace any stale copies with symlinks to the new location at Versions/Current.\nrm -rf \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/WebKitPluginHost.app\&quot; \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/WebKitPluginAgent\&quot;\nln -s Versions/Current/WebKitPluginHost.app \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/WebKitPluginHost.app\&quot;\nln -s Versions/Current/WebKitPluginAgent \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/WebKitPluginAgent\&quot;\n\nif [[ \&quot;${CONFIGURATION}\&quot; != \&quot;Production\&quot; &amp;&amp; ${ACTION} == \&quot;build\&quot; ]]; then\n    # FIXME: This should be removed once faulty links have been removed on the bots.\n    if [[ -L \&quot;${TARGET_BU
 ILD_DIR}/WebKitLegacy.framework/Versions/A/WebKitPluginHost.app\&quot; ]]; then\n        rm \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/Versions/A/WebKitPluginHost.app\&quot;\n    fi\n\n    if [[ -e \&quot;/System/Library/Frameworks/WebKit.framework/WebKitPluginHost.app\&quot; ]]; then\n        ln -s /System/Library/Frameworks/WebKit.framework/WebKitPluginHost.app \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/Versions/A/WebKitPluginHost.app\&quot;\n    else\n        ln -s /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/WebKitPluginHost.app \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/Versions/A/WebKitPluginHost.app\&quot;\n    fi\nfi\n&quot;;
</del><ins>+                        shellScript = &quot;if [[ ${PLATFORM_NAME} != \&quot;macosx\&quot; ]]; then\n    exit 0\nfi\n\n# Prior to r172595, WebKitPluginHost.app and WebKitPluginAgent lived at the top level of the framework. Replace any stale copies with symlinks to the new location at Versions/Current.\nrm -rf \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/WebKitPluginHost.app\&quot; \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/WebKitPluginAgent\&quot;\nln -s Versions/Current/WebKitPluginHost.app \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/WebKitPluginHost.app\&quot;\nln -s Versions/Current/WebKitPluginAgent \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/WebKitPluginAgent\&quot;\n\nif [[ \&quot;${CONFIGURATION}\&quot; != \&quot;Production\&quot; &amp;&amp; ${ACTION} == \&quot;build\&quot; ]]; then\n    # FIXME: This should be removed once faulty links have been removed on the bots.\n    if [[ -L \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/Versions/A/WebKitPluginH
 ost.app\&quot; ]]; then\n        rm \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/Versions/A/WebKitPluginHost.app\&quot;\n    fi\n\n    if [[ -e \&quot;/System/Library/Frameworks/WebKit.framework/WebKitPluginHost.app\&quot; ]]; then\n        ln -s /System/Library/Frameworks/WebKit.framework/WebKitPluginHost.app \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/Versions/A/WebKitPluginHost.app\&quot;\n    else\n        ln -s /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/WebKitPluginHost.app \&quot;${TARGET_BUILD_DIR}/WebKitLegacy.framework/Versions/A/WebKitPluginHost.app\&quot;\n    fi\nfi\n&quot;;
</ins><span class="cx">                 };
</span><span class="cx">                 1C395DE20C6BE8E0000D1E52 /* Generate Export Files */ = {
</span><span class="cx">                         isa = PBXShellScriptBuildPhase;
</span><span class="lines">@@ -2105,7 +2105,7 @@
</span><span class="cx">                         );
</span><span class="cx">                         runOnlyForDeploymentPostprocessing = 0;
</span><span class="cx">                         shellPath = /bin/sh;
</span><del>-                        shellScript = &quot;mkdir -p \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy\&quot;\n\nif [[ \&quot;${PLATFORM_NAME}\&quot; == \&quot;iphoneos\&quot; || \&quot;${PLATFORM_NAME}\&quot; == \&quot;iphonesimulator\&quot; ]]; then\n    cat \&quot;${PROJECT_DIR}/mac/WebKit.exp\&quot; \&quot;${PROJECT_DIR}/ios/WebKit.iOS.exp\&quot; &gt; \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebKitLegacy.generated.exp\&quot;\nelse\n    cat \&quot;${PROJECT_DIR}/mac/WebKit.exp\&quot; \&quot;${PROJECT_DIR}/mac/WebKit.mac.exp\&quot; &gt; \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebKitLegacy.generated.exp\&quot;\nfi;\n\n# exclude Carbon functions on 64-bit\nsed -e s/^_HIWebViewCreate$// -e s/^_HIWebViewGetWebView$// -e s/^_WebConvertNSImageToCGImageRef$// -e s/^_WebInitForCarbon$// \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebKitLegacy.generated.exp\&quot; &gt; \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebKitLegacy.
 LP64.exp\&quot;\n&quot;;
</del><ins>+                        shellScript = &quot;mkdir -p \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy\&quot;\n\nif [[ \&quot;${PLATFORM_NAME}\&quot; != \&quot;macosx\&quot; ]]; then\n    cat \&quot;${PROJECT_DIR}/mac/WebKit.exp\&quot; \&quot;${PROJECT_DIR}/ios/WebKit.iOS.exp\&quot; &gt; \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebKitLegacy.generated.exp\&quot;\nelse\n    cat \&quot;${PROJECT_DIR}/mac/WebKit.exp\&quot; \&quot;${PROJECT_DIR}/mac/WebKit.mac.exp\&quot; &gt; \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebKitLegacy.generated.exp\&quot;\nfi;\n\n# exclude Carbon functions on 64-bit\nsed -e s/^_HIWebViewCreate$// -e s/^_HIWebViewGetWebView$// -e s/^_WebConvertNSImageToCGImageRef$// -e s/^_WebInitForCarbon$// \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebKitLegacy.generated.exp\&quot; &gt; \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebKitLegacy.LP64.exp\&quot;\n&quot;;
</ins><span class="cx">                 };
</span><span class="cx">                 1C6CB0510AA63EB000D23BFD /* Migrate Headers */ = {
</span><span class="cx">                         isa = PBXShellScriptBuildPhase;
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebKit/mac/ChangeLog        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2015-01-20  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Switch to comparing PLATFORM_NAME in terms of macosx
+        &lt;http://webkit.org/b/139516&gt;
+
+        Reviewed by Timothy Hatcher.
+
+        * MigrateHeaders.make:
+        * postprocess-headers.sh:
+
</ins><span class="cx"> 2015-01-19  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [SVG -&gt; OTF Converter] Flip the switch on
</span></span></pre></div>
<a id="trunkSourceWebKitmacMigrateHeadersmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/MigrateHeaders.make (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/MigrateHeaders.make        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebKit/mac/MigrateHeaders.make        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -190,7 +190,7 @@
</span><span class="cx">     $(PRIVATE_HEADERS_DIR)/nptypes.h \
</span><span class="cx"> #
</span><span class="cx"> 
</span><del>-ifneq ($(filter iphoneos iphonesimulator, $(PLATFORM_NAME)), )
</del><ins>+ifneq ($(PLATFORM_NAME), macosx)
</ins><span class="cx"> all : \
</span><span class="cx">     $(PRIVATE_HEADERS_DIR)/DOMHTMLTextAreaElementPrivate.h \
</span><span class="cx">     $(PRIVATE_HEADERS_DIR)/DOMUIKitExtensions.h \
</span></span></pre></div>
<a id="trunkSourceWebKitmacpostprocessheaderssh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/postprocess-headers.sh (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/postprocess-headers.sh        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebKit/mac/postprocess-headers.sh        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -6,12 +6,12 @@
</span><span class="cx"> 
</span><span class="cx">     local unifdefOptions sedExpression
</span><span class="cx"> 
</span><del>-    if [[ ${PLATFORM_NAME} == iphoneos ]]; then
-        unifdefOptions=&quot;-DTARGET_OS_EMBEDDED=1 -DTARGET_OS_IPHONE=1 -DTARGET_IPHONE_SIMULATOR=0&quot;;
-    elif [[ ${PLATFORM_NAME} == iphonesimulator ]]; then
</del><ins>+    if [[ ${PLATFORM_NAME} == macosx ]]; then
+        unifdefOptions=&quot;-DTARGET_OS_EMBEDDED=0 -DTARGET_OS_IPHONE=0 -DTARGET_IPHONE_SIMULATOR=0&quot;;
+    elif [[ ${PLATFORM_NAME} == *simulator* ]]; then
</ins><span class="cx">         unifdefOptions=&quot;-DTARGET_OS_EMBEDDED=0 -DTARGET_OS_IPHONE=1 -DTARGET_IPHONE_SIMULATOR=1&quot;;
</span><span class="cx">     else
</span><del>-        unifdefOptions=&quot;-DTARGET_OS_EMBEDDED=0 -DTARGET_OS_IPHONE=0 -DTARGET_IPHONE_SIMULATOR=0&quot;;
</del><ins>+        unifdefOptions=&quot;-DTARGET_OS_EMBEDDED=1 -DTARGET_OS_IPHONE=1 -DTARGET_IPHONE_SIMULATOR=0&quot;;
</ins><span class="cx">     fi
</span><span class="cx"> 
</span><span class="cx">     # FIXME: We should consider making this logic general purpose so as to support keeping or removing
</span><span class="lines">@@ -28,10 +28,10 @@
</span><span class="cx">         fi
</span><span class="cx">     done
</span><span class="cx"> 
</span><del>-    if [[ ${PLATFORM_NAME} == iphone* ]]; then
</del><ins>+    if [[ ${PLATFORM_NAME} == macsox ]]; then
+        sedExpression='s/WEBKIT_((CLASS_|ENUM_)?AVAILABLE|DEPRECATED)/NS_\1/g';
+    else
</ins><span class="cx">         sedExpression='s/ *WEBKIT_((CLASS_|ENUM_)?AVAILABLE|DEPRECATED)_MAC\([^)]+\)//g';
</span><del>-    else
-        sedExpression='s/WEBKIT_((CLASS_|ENUM_)?AVAILABLE|DEPRECATED)/NS_\1/g';
</del><span class="cx">     fi
</span><span class="cx"> 
</span><span class="cx">     for header in $(find . -name '*.h' -type f); do
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebKit2/ChangeLog        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2015-01-20  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Switch to comparing PLATFORM_NAME in terms of macosx
+        &lt;http://webkit.org/b/139516&gt;
+
+        Reviewed by Timothy Hatcher.
+
+        * WebKit2.xcodeproj/project.pbxproj:
+        * mac/rewrite-availability-macros.sh: Remove the else block that
+        checked for an unknown PLATFORM_NAME.
+
</ins><span class="cx"> 2015-01-19  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add a way to collect scrolling performance data (viewport tile coverage) with UI-side compositing
</span></span></pre></div>
<a id="trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -8722,7 +8722,7 @@
</span><span class="cx">                         );
</span><span class="cx">                         runOnlyForDeploymentPostprocessing = 0;
</span><span class="cx">                         shellPath = /bin/sh;
</span><del>-                        shellScript = &quot;if [[ ${PLATFORM_NAME} == \&quot;iphoneos\&quot; || ${PLATFORM_NAME} == \&quot;iphonesimulator\&quot; ]]; then\nexit 0\nfi\n\nln -sf Versions/Current/Frameworks \&quot;$TARGET_BUILD_DIR/WebKit.framework/Frameworks\&quot;\n&quot;;
</del><ins>+                        shellScript = &quot;if [[ ${PLATFORM_NAME} != \&quot;macosx\&quot; ]]; then\nexit 0\nfi\n\nln -sf Versions/Current/Frameworks \&quot;$TARGET_BUILD_DIR/WebKit.framework/Frameworks\&quot;\n&quot;;
</ins><span class="cx">                 };
</span><span class="cx">                 1A07D2F61919AB1B00ECDA16 /* Add Symlink in /System/Library/PrivateFrameworks */ = {
</span><span class="cx">                         isa = PBXShellScriptBuildPhase;
</span><span class="lines">@@ -8736,7 +8736,7 @@
</span><span class="cx">                         );
</span><span class="cx">                         runOnlyForDeploymentPostprocessing = 0;
</span><span class="cx">                         shellPath = /bin/sh;
</span><del>-                        shellScript = &quot;if [[ ${PLATFORM_NAME} == \&quot;iphoneos\&quot; || ${PLATFORM_NAME} == \&quot;iphonesimulator\&quot; ]]; then\nif [[ ! -d \&quot;${INSTALL_DIR}/../PrivateFrameworks\&quot; ]]; then\nmkdir -p \&quot;${INSTALL_DIR}/../PrivateFrameworks\&quot;\nfi\nif [[ -d \&quot;${INSTALL_DIR}/../PrivateFrameworks/WebKit.framework\&quot; &amp;&amp; ! -L \&quot;${INSTALL_DIR}/../PrivateFrameworks/WebKit.framework\&quot; ]]; then\necho \&quot;ERROR: Cannot create symlink. ${INSTALL_DIR}/../PrivateFrameworks/WebKit.framework already exists and is a directory.\&quot;\nexit 1\nfi\n# If the symlink already exists, remove it and create the new one in its place.\nln -s -h -f ../Frameworks/WebKit.framework ${INSTALL_DIR}/../PrivateFrameworks/WebKit.framework\nfi&quot;;
</del><ins>+                        shellScript = &quot;if [[ ${PLATFORM_NAME} != \&quot;macosx\&quot; ]]; then\nif [[ ! -d \&quot;${INSTALL_DIR}/../PrivateFrameworks\&quot; ]]; then\nmkdir -p \&quot;${INSTALL_DIR}/../PrivateFrameworks\&quot;\nfi\nif [[ -d \&quot;${INSTALL_DIR}/../PrivateFrameworks/WebKit.framework\&quot; &amp;&amp; ! -L \&quot;${INSTALL_DIR}/../PrivateFrameworks/WebKit.framework\&quot; ]]; then\necho \&quot;ERROR: Cannot create symlink. ${INSTALL_DIR}/../PrivateFrameworks/WebKit.framework already exists and is a directory.\&quot;\nexit 1\nfi\n# If the symlink already exists, remove it and create the new one in its place.\nln -s -h -f ../Frameworks/WebKit.framework ${INSTALL_DIR}/../PrivateFrameworks/WebKit.framework\nfi&quot;;
</ins><span class="cx">                 };
</span><span class="cx">                 1A1D2115191D96380001619F /* Rewrite Availability Macros in Framework Headers */ = {
</span><span class="cx">                         isa = PBXShellScriptBuildPhase;
</span><span class="lines">@@ -8962,7 +8962,7 @@
</span><span class="cx">                         );
</span><span class="cx">                         runOnlyForDeploymentPostprocessing = 0;
</span><span class="cx">                         shellPath = /bin/sh;
</span><del>-                        shellScript = &quot;if [[ \&quot;${CONFIGURATION}\&quot; == \&quot;Production\&quot; ]]; then\n    exit\nfi\n\nif [[ ${PLATFORM_NAME} == iphone* ]]; then\n    XPC_SERVICES_PATH=\&quot;${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/WebKit.framework/XPCServices\&quot;\nelse\n    XPC_SERVICES_PATH=\&quot;${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/WebKit.framework/Versions/A/XPCServices\&quot;\nfi\n\nmkdir -p \&quot;${XPC_SERVICES_PATH}\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.WebContent.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.WebContent.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.WebContent.Development.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.WebContent.Development.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Networking.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Networking.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Networking.Development.xpc\&quot; \&quot;
 ${XPC_SERVICES_PATH}/com.apple.WebKit.Networking.Development.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Databases.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Databases.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Databases.Development.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Databases.Development.xpc\&quot;\n\nif [[ ${PLATFORM_NAME} == macosx ]]; then\n    ditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.32.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.32.xpc\&quot;\n    ditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.64.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.64.xpc\&quot;\n    ditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.Development.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.Development.xpc\&quot;\nfi\n&quot;;
</del><ins>+                        shellScript = &quot;if [[ \&quot;${CONFIGURATION}\&quot; == \&quot;Production\&quot; ]]; then\n    exit\nfi\n\nif [[ ${PLATFORM_NAME} != \&quot;macosx\&quot; ]]; then\n    XPC_SERVICES_PATH=\&quot;${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/WebKit.framework/XPCServices\&quot;\nelse\n    XPC_SERVICES_PATH=\&quot;${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/WebKit.framework/Versions/A/XPCServices\&quot;\nfi\n\nmkdir -p \&quot;${XPC_SERVICES_PATH}\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.WebContent.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.WebContent.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.WebContent.Development.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.WebContent.Development.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Networking.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Networking.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Networking.Development.xpc\&q
 uot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Networking.Development.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Databases.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Databases.xpc\&quot;\nditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Databases.Development.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Databases.Development.xpc\&quot;\n\nif [[ ${PLATFORM_NAME} == macosx ]]; then\n    ditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.32.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.32.xpc\&quot;\n    ditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.64.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.64.xpc\&quot;\n    ditto \&quot;${BUILT_PRODUCTS_DIR}/com.apple.WebKit.Plugin.Development.xpc\&quot; \&quot;${XPC_SERVICES_PATH}/com.apple.WebKit.Plugin.Development.xpc\&quot;\nfi\n&quot;;
</ins><span class="cx">                 };
</span><span class="cx">                 C0CE72841247E66800BC0EC4 /* Generate Derived Sources */ = {
</span><span class="cx">                         isa = PBXShellScriptBuildPhase;
</span></span></pre></div>
<a id="trunkSourceWebKit2macrewriteavailabilitymacrossh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/mac/rewrite-availability-macros.sh (178752 => 178753)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/mac/rewrite-availability-macros.sh        2015-01-20 21:46:42 UTC (rev 178752)
+++ trunk/Source/WebKit2/mac/rewrite-availability-macros.sh        2015-01-20 21:49:47 UTC (rev 178753)
</span><span class="lines">@@ -35,14 +35,12 @@
</span><span class="cx"> fi
</span><span class="cx"> 
</span><span class="cx"> function rewrite_headers () {
</span><del>-    if [[ $PLATFORM_NAME == &quot;iphonesimulator&quot; || $PLATFORM_NAME == &quot;iphoneos&quot; ]]; then
-        IOS_VERSION=${IPHONEOS_DEPLOYMENT_TARGET/\./_}
-        OSX_VERSION=&quot;NA&quot;
-    elif [[ $PLATFORM_NAME == &quot;macosx&quot; ]]; then
</del><ins>+    if [[ &quot;${PLATFORM_NAME}&quot; == &quot;macosx&quot; ]]; then
</ins><span class="cx">         OSX_VERSION=${MACOSX_DEPLOYMENT_TARGET/\./_}
</span><span class="cx">         IOS_VERSION=&quot;NA&quot;
</span><span class="cx">     else
</span><del>-        exit 1;
</del><ins>+        IOS_VERSION=${IPHONEOS_DEPLOYMENT_TARGET/\./_}
+        OSX_VERSION=&quot;NA&quot;
</ins><span class="cx">     fi
</span><span class="cx"> 
</span><span class="cx">     for HEADER_PATH in $1/*.h; do
</span></span></pre>
</div>
</div>

</body>
</html>