Bug 125569 - [GTK][CMake] Integrate GResource for inspector files (and others?)
Summary: [GTK][CMake] Integrate GResource for inspector files (and others?)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Martin Robinson
URL:
Keywords:
Depends on:
Blocks: 115966
  Show dependency treegraph
 
Reported: 2013-12-11 06:09 PST by Gustavo Noronha (kov)
Modified: 2013-12-22 22:05 PST (History)
7 users (show)

See Also:


Attachments
Patch (11.61 KB, patch)
2013-12-22 09:17 PST, Martin Robinson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Noronha (kov) 2013-12-11 06:09:07 PST
SSIA
Comment 1 Martin Robinson 2013-12-22 09:17:41 PST
Created attachment 219875 [details]
Patch
Comment 2 WebKit Commit Bot 2013-12-22 09:19:05 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 WebKit Commit Bot 2013-12-22 09:19:13 PST
Attachment 219875 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebInspectorUI/ChangeLog', u'Source/WebInspectorUI/GNUmakefile.am', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/GNUmakefile.am', u'Source/WebKit2/PlatformGTK.cmake', u'Source/WebKit2/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml', u'Tools/ChangeLog', u'Tools/gtk/generate-inspector-gresource-manifest.py', '--commit-queue']" exit_code: 1
ERROR: Source/WebKit2/PlatformGTK.cmake:363:  Alphabetical sorting problem. "fake-installed-webextension-headers" should be before "soup-forwarding-headers".  [list/order] [5]
ERROR: Source/WebKit2/PlatformGTK.cmake:460:  The item "unix/PluginMainUnix.cpp" should be added only once to the list.  [list/duplicate] [5]
ERROR: Source/WebKit2/PlatformGTK.cmake:466:  Alphabetical sorting problem. "PluginProcess/PluginControllerProxy.messages.in" should be before "Shared/Plugins/NPObjectMessageReceiver.messages.in".  [list/order] [5]
Total errors found: 3 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Martin Robinson 2013-12-22 09:30:27 PST
(In reply to comment #3)

> If any of these errors are false positives, please file a bug against check-webkit-style.

These style errors were not introduced by this patch. I'll fix them in another patch.
Comment 5 Gustavo Noronha (kov) 2013-12-22 12:47:09 PST
Comment on attachment 219875 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=219875&action=review

> Source/WebInspectorUI/GNUmakefile.am:11
> +	$(AM_V_at)$(srcdir)/Tools/gtk/generate-inspector-gresource-manifest.py $@

Nice =) maybe you should depend on the script as well.

> Source/WebKit2/GNUmakefile.am:27
>  	$(AM_V_at)glib-compile-resources --generate --sourcedir=$(WebKit2)/UIProcess/InspectorServer/front-end \
> -		--target=${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.c ${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.xml
> -
> -BUILT_SOURCES += \
> -	DerivedSources/WebInspectorUI/WebKit2GResourceBundle.xml
> +		--target=${GENSOURCES_WEBINSPECTOR_UI}/WebKit2GResourceBundle.c $(WebKit2)/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml

Makes so much more sense. Why did I add that many echo calls instead of shipping this file I know not.
Comment 6 Martin Robinson 2013-12-22 22:05:20 PST
Committed r160985: <http://trac.webkit.org/changeset/160985>
Comment 7 Martin Robinson 2013-12-22 22:05:30 PST
Comment on attachment 219875 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=219875&action=review

>> Source/WebInspectorUI/GNUmakefile.am:11
>> +	$(AM_V_at)$(srcdir)/Tools/gtk/generate-inspector-gresource-manifest.py $@
> 
> Nice =) maybe you should depend on the script as well.

Nice catch! Thanks for the review.