<!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>[165298] trunk/Source/WebKit</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/165298">165298</a></dd>
<dt>Author</dt> <dd>andersca@apple.com</dd>
<dt>Date</dt> <dd>2014-03-07 16:18:21 -0800 (Fri, 07 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Source/WebKit: Make it possible to copy WebKit2 headers to WebKit.framework
https://bugs.webkit.org/show_bug.cgi?id=129935

Reviewed by Dan Bernstein.

* WebKit.xcodeproj/project.pbxproj:
Move the migrate headers script out into its own file.

Source/WebKit/mac: Make it possible to copy WebKit2 headers to WebKit.framework
https://bugs.webkit.org/show_bug.cgi?id=129935
&lt;rdar://problem/15920020&gt;

Reviewed by Dan Bernstein.

* MigrateHeaders.make:
Gather a list of public and private WebKit2 headers and filter them against the WEBKIT2_HEADERS list.
The matching headers are copied to the respective Headers or PrivateHeaders directories under WebKit.framework,
and also have their #imports rewritten to reference WebKit instead of WebKit2.

* migrate-headers.sh: Added.
Set up the WEBKIT2_FRAMEWORKS_DIR if needed.</pre>

<h3>Modified Paths</h3>
<ul>
<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>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebKitmacmigrateheaderssh">trunk/Source/WebKit/mac/migrate-headers.sh</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (165297 => 165298)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2014-03-07 23:43:57 UTC (rev 165297)
+++ trunk/Source/WebKit/ChangeLog        2014-03-08 00:18:21 UTC (rev 165298)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2014-03-07  Anders Carlsson  &lt;andersca@apple.com&gt;
+
+        Make it possible to copy WebKit2 headers to WebKit.framework
+        https://bugs.webkit.org/show_bug.cgi?id=129935
+
+        Reviewed by Dan Bernstein.
+
+        * WebKit.xcodeproj/project.pbxproj:
+        Move the migrate headers script out into its own file.
+
</ins><span class="cx"> 2014-03-07  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Win] Convert WebKit.make to an MSBuild file.
</span></span></pre></div>
<a id="trunkSourceWebKitWebKitxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (165297 => 165298)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2014-03-07 23:43:57 UTC (rev 165297)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2014-03-08 00:18:21 UTC (rev 165298)
</span><span class="lines">@@ -2031,7 +2031,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;${TARGET_BUILD_DIR}/${PRIVATE_HEADERS_FOLDER_PATH}\&quot;\nmkdir -p \&quot;${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}\&quot;\nmkdir -p \&quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKit\&quot;\n\n# If we didn't build WebCore, use the production copy of the headers\nif [ ! -d \&quot;${WEBCORE_PRIVATE_HEADERS_DIR}\&quot; ]; then\n    export WEBCORE_PRIVATE_HEADERS_DIR=\&quot;`eval 'echo ${WEBCORE_PRIVATE_HEADERS_DIR_'${PLATFORM_NAME}'_Production}'`\&quot;\nfi\n\nif [ \&quot;${ACTION}\&quot; = \&quot;build\&quot; -o \&quot;${ACTION}\&quot; = \&quot;install\&quot; -o \&quot;${ACTION}\&quot; = \&quot;installhdrs\&quot; ]; then\n    make -C mac -f \&quot;MigrateHeaders.make\&quot; -j `/usr/sbin/sysctl -n hw.activecpu`\nfi\n&quot;;
</del><ins>+                        shellScript = &quot;exec \&quot;${SRCROOT}/mac/migrate-headers.sh\&quot;&quot;;
</ins><span class="cx">                 };
</span><span class="cx">                 3713F018142905B70036387F /* Check For Inappropriate Objective-C Class Names */ = {
</span><span class="cx">                         isa = PBXShellScriptBuildPhase;
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (165297 => 165298)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2014-03-07 23:43:57 UTC (rev 165297)
+++ trunk/Source/WebKit/mac/ChangeLog        2014-03-08 00:18:21 UTC (rev 165298)
</span><span class="lines">@@ -1,5 +1,21 @@
</span><span class="cx"> 2014-03-07  Anders Carlsson  &lt;andersca@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Make it possible to copy WebKit2 headers to WebKit.framework
+        https://bugs.webkit.org/show_bug.cgi?id=129935
+        &lt;rdar://problem/15920020&gt;
+
+        Reviewed by Dan Bernstein.
+
+        * MigrateHeaders.make:
+        Gather a list of public and private WebKit2 headers and filter them against the WEBKIT2_HEADERS list.
+        The matching headers are copied to the respective Headers or PrivateHeaders directories under WebKit.framework,
+        and also have their #imports rewritten to reference WebKit instead of WebKit2.
+
+        * migrate-headers.sh: Added.
+        Set up the WEBKIT2_FRAMEWORKS_DIR if needed.
+
+2014-03-07  Anders Carlsson  &lt;andersca@apple.com&gt;
+
</ins><span class="cx">         Fix a typo
</span><span class="cx">         &lt;rdar://problem/15920020&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitmacMigrateHeadersmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/MigrateHeaders.make (165297 => 165298)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/MigrateHeaders.make        2014-03-07 23:43:57 UTC (rev 165297)
+++ trunk/Source/WebKit/mac/MigrateHeaders.make        2014-03-08 00:18:21 UTC (rev 165298)
</span><span class="lines">@@ -231,8 +231,8 @@
</span><span class="cx"> 
</span><span class="cx"> endif
</span><span class="cx"> 
</span><del>-REPLACE_RULES = -e s/\&lt;WebCore/\&lt;WebKit/ -e s/DOMDOMImplementation/DOMImplementation/
-HEADER_MIGRATE_CMD = sed $(REPLACE_RULES) $&lt; &gt; $@
</del><ins>+WEBCORE_HEADER_REPLACE_RULES = -e s/\&lt;WebCore/\&lt;WebKit/ -e s/DOMDOMImplementation/DOMImplementation/
+WEBCORE_HEADER_MIGRATE_CMD = sed $(WEBCORE_HEADER_REPLACE_RULES) $&lt; &gt; $@
</ins><span class="cx"> 
</span><span class="cx"> ifeq ($(filter iphoneos iphonesimulator, $(PLATFORM_NAME)), )
</span><span class="cx"> PUBLIC_HEADER_CHECK_CMD = @if grep -q &quot;AVAILABLE.*TBD&quot; &quot;$&lt;&quot;; then line=$$(awk &quot;/AVAILABLE.*TBD/ { print FNR; exit }&quot; &quot;$&lt;&quot; ); echo &quot;$&lt;:$$line: error: A class within a public header has unspecified availability.&quot;; false; fi
</span><span class="lines">@@ -242,17 +242,41 @@
</span><span class="cx"> 
</span><span class="cx"> $(PUBLIC_HEADERS_DIR)/DOM% : DOMDOM% MigrateHeaders.make
</span><span class="cx">         $(PUBLIC_HEADER_CHECK_CMD)
</span><del>-        $(HEADER_MIGRATE_CMD)
</del><ins>+        $(WEBCORE_HEADER_MIGRATE_CMD)
</ins><span class="cx"> 
</span><span class="cx"> $(PRIVATE_HEADERS_DIR)/DOM% : DOMDOM% MigrateHeaders.make
</span><del>-        $(HEADER_MIGRATE_CMD)
</del><ins>+        $(WEBCORE_HEADER_MIGRATE_CMD)
</ins><span class="cx"> 
</span><span class="cx"> $(PUBLIC_HEADERS_DIR)/% : % MigrateHeaders.make
</span><span class="cx">         $(PUBLIC_HEADER_CHECK_CMD)
</span><del>-        $(HEADER_MIGRATE_CMD)
</del><ins>+        $(WEBCORE_HEADER_MIGRATE_CMD)
</ins><span class="cx"> 
</span><span class="cx"> $(PRIVATE_HEADERS_DIR)/% : % MigrateHeaders.make
</span><del>-        $(HEADER_MIGRATE_CMD)
</del><ins>+        $(WEBCORE_HEADER_MIGRATE_CMD)
</ins><span class="cx"> 
</span><span class="cx"> $(INTERNAL_HEADERS_DIR)/% : % MigrateHeaders.make
</span><del>-        $(HEADER_MIGRATE_CMD)
</del><ins>+        $(WEBCORE_HEADER_MIGRATE_CMD)
+
+# Migration of WebKit2 headers to WebKit
+
+WEBKIT2_HEADERS = \
+    WKFoundation.h \
+    WKProcessPoolConfiguration.h \
+    WKProcessPoolConfigurationPrivate.h \
+#
+
+WEBKIT2_PUBLIC_HEADERS = $(addprefix $(PUBLIC_HEADERS_DIR)/, $(filter $(WEBKIT2_HEADERS),$(notdir $(wildcard $(WEBKIT2_FRAMEWORKS_DIR)/WebKit2.framework/Headers/*))))
+WEBKIT2_PRIVATE_HEADERS = $(addprefix $(PRIVATE_HEADERS_DIR)/, $(filter $(WEBKIT2_HEADERS),$(notdir $(wildcard $(WEBKIT2_FRAMEWORKS_DIR)/WebKit2.framework/PrivateHeaders/*))))
+
+ifeq ($(PLATFORM_NAME), macosx)
+all : $(WEBKIT2_PUBLIC_HEADERS) $(WEBKIT2_PRIVATE_HEADERS)
+endif
+
+WEBKIT2_HEADER_REPLACE_RULES = -e s/\&lt;WebKit2/\&lt;WebKit/
+WEBKIT2_HEADER_MIGRATE_CMD = sed $(WEBKIT2_HEADER_REPLACE_RULES) $&lt; &gt; $@
+
+$(PUBLIC_HEADERS_DIR)/% : $(WEBKIT2_FRAMEWORKS_DIR)/WebKit2.framework/Headers/% MigrateHeaders.make
+        $(WEBKIT2_HEADER_MIGRATE_CMD)
+
+$(PRIVATE_HEADERS_DIR)/% : $(WEBKIT2_FRAMEWORKS_DIR)/WebKit2.framework/PrivateHeaders/% MigrateHeaders.make
+        $(WEBKIT2_HEADER_MIGRATE_CMD)
</ins></span></pre></div>
<a id="trunkSourceWebKitmacmigrateheaderssh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebKit/mac/migrate-headers.sh (0 => 165298)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/migrate-headers.sh                                (rev 0)
+++ trunk/Source/WebKit/mac/migrate-headers.sh        2014-03-08 00:18:21 UTC (rev 165298)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+#
+# Copyright (C) 2006, 2014 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+# THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+mkdir -p &quot;${TARGET_BUILD_DIR}/${PRIVATE_HEADERS_FOLDER_PATH}&quot;
+mkdir -p &quot;${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}&quot;
+mkdir -p &quot;${BUILT_PRODUCTS_DIR}/DerivedSources/WebKit&quot;
+
+# If we didn't build WebCore, use the production copy of the headers
+if [ ! -d &quot;${WEBCORE_PRIVATE_HEADERS_DIR}&quot; ]; then
+    export WEBCORE_PRIVATE_HEADERS_DIR=&quot;`eval 'echo ${WEBCORE_PRIVATE_HEADERS_DIR_'${PLATFORM_NAME}'_Production}'`&quot;
+fi
+
+# If we didn't build WebKit2, use the production copy of the headers
+if [ ! -d &quot;${WEBKIT2_FRAMEWORKS_DIR}/WebKit2.framework&quot; ]; then
+    export WEBKIT2_FRAMEWORKS_DIR=&quot;`eval 'echo ${WEBKIT2_FRAMEWORKS_DIR_Production}'/WebKit2.framework`&quot;
+fi
+
+if [ &quot;${ACTION}&quot; = &quot;build&quot; -o &quot;${ACTION}&quot; = &quot;install&quot; -o &quot;${ACTION}&quot; = &quot;installhdrs&quot; ]; then
+    make -C mac -f &quot;MigrateHeaders.make&quot; -j `/usr/sbin/sysctl -n hw.activecpu`
+fi
</ins><span class="cx">Property changes on: trunk/Source/WebKit/mac/migrate-headers.sh
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
</div>

</body>
</html>