[GTK][WPE] Build inspector resources using copy-user-interface-resources.pl script
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Nov 2017 07:23:38 +0000 (07:23 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Nov 2017 07:23:38 +0000 (07:23 +0000)
commita5cf1d218dac7ca2cf1cf917c77b45c3eba61998
tree24b9c044670e22f7bc5630abec98bc5524140883
parentd011fda37625a70f097d54cd0e71b1b0772ddda3
[GTK][WPE] Build inspector resources using copy-user-interface-resources.pl script
https://bugs.webkit.org/show_bug.cgi?id=179317

Reviewed by Michael Catanzaro.

Source/WebKit:

This is the script used by Apple and it has several advantages:

  - It allows to combine and minify most of the js and css files, which improves performance and binary size.
  - It removes the debug resources and assertions in production builds.
  - It allows to remove the test resources in production builds.

The patch also moves the common cmake code to generate the resources to a new file InspectorGResources.cmake included
by GTK+ and WPE platform cmake files.

* InspectorGResources.cmake: Added.
* PlatformGTK.cmake:
* PlatformWPE.cmake:

Tools:

Move generate-inspector-gresource-manifest.py to glib dir to be shared by GTK+ and WPE ports and update it to
receive an input directory instead of a list of patterns.
File::Copy::Recursive is required by copy-user-interface-resources.pl, so make sure it's installed.

* glib/generate-inspector-gresource-manifest.py: Renamed from Tools/gtk/generate-inspector-gresource-manifest.py.
(get_filenames):
(get_filenames.should_ignore_resource):
* gtk/install-dependencies:
* wpe/generate-inspector-gresource-manifest.py: Removed.
* wpe/install-dependencies:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/InspectorGResources.cmake [new file with mode: 0644]
Source/WebKit/PlatformGTK.cmake
Source/WebKit/PlatformWPE.cmake
Tools/ChangeLog
Tools/glib/generate-inspector-gresource-manifest.py [moved from Tools/gtk/generate-inspector-gresource-manifest.py with 59% similarity]
Tools/gtk/install-dependencies
Tools/wpe/generate-inspector-gresource-manifest.py [deleted file]
Tools/wpe/install-dependencies