<!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>[160985] trunk</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/160985">160985</a></dd>
<dt>Author</dt> <dd>mrobinson@webkit.org</dd>
<dt>Date</dt> <dd>2013-12-22 22:08:44 -0800 (Sun, 22 Dec 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>[GTK][CMake] Integrate GResource for inspector files (and others?)
https://bugs.webkit.org/show_bug.cgi?id=125569
Reviewed by Gustavo Noronha Silva.
Source/WebInspectorUI:
* GNUmakefile.am: Use the new generation script instead of generating with
shell scripting in the makefile.
Source/WebKit2:
* GNUmakefile.am: Use the newly added static WebKit2InspectorGResourceBundle.xml
instead of generating the same file each time.
* PlatformGTK.cmake: Add support for building the GResource bundles into WebKit2.
* UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml: Added.
Tools:
* gtk/generate-inspector-gresource-manifest.py: Added.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUIGNUmakefileam">trunk/Source/WebInspectorUI/GNUmakefile.am</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2GNUmakefileam">trunk/Source/WebKit2/GNUmakefile.am</a></li>
<li><a href="#trunkSourceWebKit2PlatformGTKcmake">trunk/Source/WebKit2/PlatformGTK.cmake</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKit2InspectorGResourceBundlexml">trunk/Source/WebKit2/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml</a></li>
<li><a href="#trunkToolsgtkgenerateinspectorgresourcemanifestpy">trunk/Tools/gtk/generate-inspector-gresource-manifest.py</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (160984 => 160985)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2013-12-23 04:40:05 UTC (rev 160984)
+++ trunk/Source/WebInspectorUI/ChangeLog        2013-12-23 06:08:44 UTC (rev 160985)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2013-12-22 Martin Robinson <mrobinson@igalia.com>
+
+ [GTK][CMake] Integrate GResource for inspector files (and others?)
+ https://bugs.webkit.org/show_bug.cgi?id=125569
+
+ Reviewed by Gustavo Noronha Silva.
+
+ * GNUmakefile.am: Use the new generation script instead of generating with
+ shell scripting in the makefile.
+
</ins><span class="cx"> 2013-12-19 Joseph Pecoraro <pecoraro@apple.com>
</span><span class="cx">
</span><span class="cx"> Web Inspector: Frontend Error when selecting Database folder in Resources Sidebar
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIGNUmakefileam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/GNUmakefile.am (160984 => 160985)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/GNUmakefile.am        2013-12-23 04:40:05 UTC (rev 160984)
+++ trunk/Source/WebInspectorUI/GNUmakefile.am        2013-12-23 06:08:44 UTC (rev 160985)
</span><span class="lines">@@ -5,21 +5,11 @@
</span><span class="cx">         $(WebInspectorUI)/UserInterface/Images/*.png \
</span><span class="cx">         $(WebInspectorUI)/UserInterface/Images/*.svg \
</span><span class="cx">         $(WebInspectorUI)/UserInterface/External/CodeMirror/* \
</span><del>-        $(WebInspectorUI)/Localizations/en.lproj/localizedStrings.js
</del><ins>+        $(WebInspectorUI)/Localizations/en.lproj/localizedStrings.js \
+        $(srcdir)/Tools/gtk/generate-inspector-gresource-manifest.py
</ins><span class="cx">         $(AM_V_GEN)
</span><span class="cx">         $(AM_V_at)mkdir -p ${GENSOURCES_WEBINSPECTOR_UI}
</span><del>-        $(AM_V_at)echo '<?xml version="1.0" encoding="UTF-8"?>' > ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
-        $(AM_V_at)echo '<gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
-        $(AM_V_at)echo ' <gresource prefix="/org/webkitgtk/inspector">' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
-        $(AM_V_at)\
-                basepath=`echo $(WebInspectorUI)/ | sed 's,^./,,g'`; \
-                for file in $^; do \
-                        if [ "$$file" = "GNUmakefile" ]; then continue; fi; \
-                        file=`echo $$file | sed "s,$$basepath,,g"`; \
-                        echo " <file>$$file</file>" >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml; \
-                done
-        $(AM_V_at)echo ' </gresource>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
-        $(AM_V_at)echo '</gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
</del><ins>+        $(AM_V_at)$(srcdir)/Tools/gtk/generate-inspector-gresource-manifest.py $@
</ins><span class="cx">
</span><span class="cx"> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.c: DerivedSources/WebInspectorUI/GResourceBundle.xml
</span><span class="cx">         $(AM_V_GEN)
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (160984 => 160985)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2013-12-23 04:40:05 UTC (rev 160984)
+++ trunk/Source/WebKit2/ChangeLog        2013-12-23 06:08:44 UTC (rev 160985)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2013-12-22 Martin Robinson <mrobinson@igalia.com>
+
+ [GTK][CMake] Integrate GResource for inspector files (and others?)
+ https://bugs.webkit.org/show_bug.cgi?id=125569
+
+ Reviewed by Gustavo Noronha Silva.
+
+ * GNUmakefile.am: Use the newly added static WebKit2InspectorGResourceBundle.xml
+ instead of generating the same file each time.
+ * PlatformGTK.cmake: Add support for building the GResource bundles into WebKit2.
+ * UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml: Added.
+
</ins><span class="cx"> 2013-12-22 Csaba Osztrogonác <ossy@webkit.org>
</span><span class="cx">
</span><span class="cx"> URTBF after r160971 to try to make EFL build again.
</span></span></pre></div>
<a id="trunkSourceWebKit2GNUmakefileam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/GNUmakefile.am (160984 => 160985)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/GNUmakefile.am        2013-12-23 04:40:05 UTC (rev 160984)
+++ trunk/Source/WebKit2/GNUmakefile.am        2013-12-23 06:08:44 UTC (rev 160985)
</span><span class="lines">@@ -19,25 +19,13 @@
</span><span class="cx">         Programs/WebKitPluginProcess
</span><span class="cx"> endif
</span><span class="cx">
</span><del>-${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml: GNUmakefile \
-        $(WebKit2)/UIProcess/InspectorServer/front-end/inspectorPageIndex.html
</del><ins>+${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.c: \
+                $(WebKit2)/UIProcess/InspectorServer/front-end/inspectorPageIndex.html \
+                $(WebKit2)/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml
</ins><span class="cx">         $(AM_V_GEN)
</span><del>-        $(AM_V_at)mkdir -p ${GENSOURCES_WEBINSPECTOR_UI}
-        $(AM_V_at)echo '<?xml version="1.0" encoding="UTF-8"?>' > ${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml
-        $(AM_V_at)echo '<gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml
-        $(AM_V_at)echo ' <gresource prefix="/org/webkitgtk/inspector/UserInterface">' >> ${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml
-        $(AM_V_at)echo " <file>inspectorPageIndex.html</file>" >> ${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml
-        $(AM_V_at)echo ' </gresource>' >> ${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml
-        $(AM_V_at)echo '</gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml
-
-${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.c: DerivedSources/WebInspectorUI/WebKit2GResourceBundle.xml
-        $(AM_V_GEN)
</del><span class="cx">         $(AM_V_at)glib-compile-resources --generate --sourcedir=$(WebKit2)/UIProcess/InspectorServer/front-end \
</span><del>-                --target=${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.c ${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml
</del><ins>+                --target=${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.c $(WebKit2)/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml
</ins><span class="cx">
</span><del>-BUILT_SOURCES += \
-        DerivedSources/WebInspectorUI/WebKit2GResourceBundle.xml
-
</del><span class="cx"> webkit2gtk_built_sources += \
</span><span class="cx">         DerivedSources/WebInspectorUI/WebKit2GResourceBundle.c
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformGTKcmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/PlatformGTK.cmake (160984 => 160985)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/PlatformGTK.cmake        2013-12-23 04:40:05 UTC (rev 160984)
+++ trunk/Source/WebKit2/PlatformGTK.cmake        2013-12-23 06:08:44 UTC (rev 160985)
</span><span class="lines">@@ -15,6 +15,9 @@
</span><span class="cx"> add_definitions(-DLIBDIR="${CMAKE_INSTALL_FULL_LIBDIR}")
</span><span class="cx">
</span><span class="cx"> list(APPEND WebKit2_SOURCES
</span><ins>+ ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKit2InspectorGResourceBundle.c
+ ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.c
+
</ins><span class="cx"> ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.cpp
</span><span class="cx"> ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
</span><span class="cx">
</span><span class="lines">@@ -352,7 +355,16 @@
</span><span class="cx"> ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h
</span><span class="cx"> ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPagePrivate.h
</span><span class="cx"> ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h
</span><ins>+)
</ins><span class="cx">
</span><ins>+file(GLOB InspectorFiles
+ ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
+ ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/*.css
+ ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/External/CodeMirror/*
+ ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/*.html
+ ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/*.png
+ ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/*.svg
+ ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/*.js
</ins><span class="cx"> )
</span><span class="cx">
</span><span class="cx"> list(APPEND WebKit2_MESSAGES_IN_FILES
</span><span class="lines">@@ -445,6 +457,30 @@
</span><span class="cx"> COMMAND glib-mkenums --template ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitEnumTypes.cpp.template ${WebKit2_INSTALLED_HEADERS} | sed s/web_kit/webkit/ > ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.cpp
</span><span class="cx"> VERBATIM)
</span><span class="cx">
</span><ins>+add_custom_command(
+ OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml
+ DEPENDS ${InspectorFiles}
+ ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py
+ COMMAND ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml
+ VERBATIM
+)
+
+add_custom_command(
+ OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.c
+ DEPENDS ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml
+ ${InspectorFiles}
+ COMMAND glib-compile-resources --generate --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebInspectorUI --target=${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.c ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml
+ VERBATIM
+)
+
+add_custom_command(
+ OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKit2InspectorGResourceBundle.c
+ DEPENDS ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml
+ ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html
+ COMMAND glib-compile-resources --generate --sourcedir=${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end --target=${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKit2InspectorGResourceBundle.c ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml
+ VERBATIM
+)
+
</ins><span class="cx"> # This symbolic link allows includes like #include <webkit2/WebkitWebView.h> which simulates installed headers.
</span><span class="cx"> add_custom_target(fake-installed-headers
</span><span class="cx"> mkdir -p ${DERIVED_SOURCES_WEBKIT2_DIR}/webkit2gtk/include
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKit2InspectorGResourceBundlexml"></a>
<div class="addfile"><h4>Added: trunk/Source/WebKit2/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml (0 => 160985)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml         (rev 0)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml        2013-12-23 06:08:44 UTC (rev 160985)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/webkitgtk/inspector/UserInterface">
+ <file>inspectorPageIndex.html</file>
+ </gresource>
+</gresources>
</ins><span class="cx">Property changes on: trunk/Source/WebKit2/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (160984 => 160985)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2013-12-23 04:40:05 UTC (rev 160984)
+++ trunk/Tools/ChangeLog        2013-12-23 06:08:44 UTC (rev 160985)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2013-12-22 Martin Robinson <mrobinson@igalia.com>
+
+ [GTK][CMake] Integrate GResource for inspector files (and others?)
+ https://bugs.webkit.org/show_bug.cgi?id=125569
+
+ Reviewed by Gustavo Noronha Silva.
+
+ * gtk/generate-inspector-gresource-manifest.py: Added.
+
</ins><span class="cx"> 2013-12-22 Csaba Osztrogonác <ossy@webkit.org>
</span><span class="cx">
</span><span class="cx"> Last URTBF after r160971 to make EFL build happy.
</span></span></pre></div>
<a id="trunkToolsgtkgenerateinspectorgresourcemanifestpy"></a>
<div class="addfile"><h4>Added: trunk/Tools/gtk/generate-inspector-gresource-manifest.py (0 => 160985)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/gtk/generate-inspector-gresource-manifest.py         (rev 0)
+++ trunk/Tools/gtk/generate-inspector-gresource-manifest.py        2013-12-23 06:08:44 UTC (rev 160985)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+#!/usr/bin/env python
+# Copyright (C) 2013 Igalia S.L.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+import common
+import glob
+import os
+import sys
+
+resources_path = common.top_level_path() + "/Source/WebInspectorUI/"
+inspector_files = \
+ glob.glob(resources_path + 'UserInterface/*.html') + \
+ glob.glob(resources_path + 'UserInterface/*.js') + \
+ glob.glob(resources_path + 'UserInterface/*.css') + \
+ glob.glob(resources_path + 'UserInterface/Images/*.png') + \
+ glob.glob(resources_path + 'UserInterface/Images/*.svg') + \
+ glob.glob(resources_path + 'UserInterface/External/CodeMirror/*') + \
+ glob.glob(resources_path + 'Localizations/en.lproj/localizedStrings.js')
+
+gresources_file_content = \
+"""<?xml version=1.0 encoding=UTF-8?>
+<gresources>
+ <gresource prefix="/org/webkitgtk/inspector">
+"""
+
+for file in inspector_files:
+ gresources_file_content += " <file>" + file.replace(resources_path, '') + "</file>\n"
+
+gresources_file_content += \
+""" </gresource>
+</gresources>
+"""
+
+open(sys.argv[1], 'w').write(gresources_file_content)
</ins><span class="cx">Property changes on: trunk/Tools/gtk/generate-inspector-gresource-manifest.py
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
</div>
</body>
</html>