Title: [139992] trunk
Revision
139992
Author
commit-qu...@webkit.org
Date
2013-01-17 10:37:54 -0800 (Thu, 17 Jan 2013)

Log Message

[EFL][CMAKE] Compress resource files of inspector
https://bugs.webkit.org/show_bug.cgi?id=106210

Patch by Seokju Kwon <seokju.k...@gmail.com> on 2013-01-17
Reviewed by Gyuyoung Kim.

Add compressing _javascript_
for smaller package and faster connection of remote web inspector.

* Source/PlatformEfl.cmake:

Modified Paths

Diff

Modified: trunk/ChangeLog (139991 => 139992)


--- trunk/ChangeLog	2013-01-17 18:36:18 UTC (rev 139991)
+++ trunk/ChangeLog	2013-01-17 18:37:54 UTC (rev 139992)
@@ -1,3 +1,15 @@
+2013-01-17  Seokju Kwon  <seokju.k...@gmail.com>
+
+        [EFL][CMAKE] Compress resource files of inspector
+        https://bugs.webkit.org/show_bug.cgi?id=106210
+
+        Reviewed by Gyuyoung Kim.
+
+        Add compressing _javascript_
+        for smaller package and faster connection of remote web inspector.
+
+        * Source/PlatformEfl.cmake:
+
 2013-01-16  Hugo Parente Lima  <hugo.l...@openbossa.org>
 
         [CMake] Report actual values for feature configuration (instead of the default)

Modified: trunk/Source/PlatformEfl.cmake (139991 => 139992)


--- trunk/Source/PlatformEfl.cmake	2013-01-17 18:36:18 UTC (rev 139991)
+++ trunk/Source/PlatformEfl.cmake	2013-01-17 18:37:54 UTC (rev 139992)
@@ -17,4 +17,22 @@
                        PATTERN "*.css"
                        PATTERN "*.gif"
                        PATTERN "*.png")
+
+    find_program(UGLIFYJS_EXECUTABLE uglifyjs)
+    if (UGLIFYJS_EXECUTABLE AND (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug"))
+        file(GLOB frontend_js_files "${WEBCORE_DIR}/inspector/front-end/*.js")
+        set(all_js_files
+            ${frontend_js_files}
+            "${WEBCORE_DIR}/English.lproj/localizedStrings.js"
+            "${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js"
+        )
+
+        foreach (js_file ${all_js_files})
+            get_filename_component(filename ${js_file} NAME)
+            install(CODE
+                "execute_process(
+                    COMMAND ${UGLIFYJS_EXECUTABLE} --overwrite ${filename}
+                    WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR})")
+        endforeach ()
+    endif ()
 endif ()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to