Bug 136943

Summary: [GTK] generate-inspector-gresource-manifest.py should receive the list of files from the makefile
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, pnormand
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 136632    
Attachments:
Description Flags
Patch
none
Try to make style checker happy pnormand: review+

Description Carlos Garcia Campos 2014-09-19 01:51:57 PDT
We build a list of inspector files in the makefile, but then the script receives the base dirs that are scanned again.
Comment 1 Carlos Garcia Campos 2014-09-19 01:57:05 PDT
Created attachment 238359 [details]
Patch
Comment 2 WebKit Commit Bot 2014-09-19 01:59:18 PDT
Attachment 238359 [details] did not pass style-queue:


ERROR: Tools/gtk/generate-inspector-gresource-manifest.py:25:  expected 2 blank lines, found 1  [pep8/E302] [5]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Carlos Garcia Campos 2014-09-19 02:01:06 PDT
Created attachment 238361 [details]
Try to make style checker happy
Comment 4 Philippe Normand 2014-09-19 02:14:47 PDT
Comment on attachment 238361 [details]
Try to make style checker happy

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

> Source/WebKit2/PlatformGTK.cmake:500
> +    COMMAND ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py --output=${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml ${InspectorFiles}

The new risk here is to exceed command line length limits, I suppose it's ok for now though.
Comment 5 Carlos Garcia Campos 2014-09-19 02:17:47 PDT
(In reply to comment #4)
> (From update of attachment 238361 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=238361&action=review
> 
> > Source/WebKit2/PlatformGTK.cmake:500
> > +    COMMAND ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py --output=${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml ${InspectorFiles}
> 
> The new risk here is to exceed command line length limits, I suppose it's ok for now though.

Yes, a possible solution might be to pass the relative filenames directly to the script, but I have no idea how to do that with cmake.
Comment 6 Carlos Garcia Campos 2014-09-19 02:21:32 PDT
Committed r173751: <http://trac.webkit.org/changeset/173751>