Bug 136943 - [GTK] generate-inspector-gresource-manifest.py should receive the list of files from the makefile
Summary: [GTK] generate-inspector-gresource-manifest.py should receive the list of fil...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks: 136632
  Show dependency treegraph
 
Reported: 2014-09-19 01:51 PDT by Carlos Garcia Campos
Modified: 2014-09-19 02:21 PDT (History)
2 users (show)

See Also:


Attachments
Patch (6.05 KB, patch)
2014-09-19 01:57 PDT, Carlos Garcia Campos
no flags Details | Formatted Diff | Diff
Try to make style checker happy (6.05 KB, patch)
2014-09-19 02:01 PDT, Carlos Garcia Campos
pnormand: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>