[GTK] WebKitWebView::load-failed-with-tls-errors should receive the failing URI inste...
[WebKit-https.git] / Source / PlatformEfl.cmake
1 add_subdirectory(${WEBCORE_DIR}/platform/efl/DefaultTheme)
2
3 if (ENABLE_INSPECTOR)
4     add_custom_target(
5         web-inspector-resources ALL
6         COMMAND ${CMAKE_COMMAND} -E copy_directory ${WEBINSPECTORUI_DIR}/UserInterface ${WEB_INSPECTOR_DIR}
7         COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorJSBackendCommands.js ${WEB_INSPECTOR_DIR}/Protocol
8         COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorWebBackendCommands.js ${WEB_INSPECTOR_DIR}/Protocol
9         COMMAND ${CMAKE_COMMAND} -E copy ${WEBINSPECTORUI_DIR}/Localizations/en.lproj/localizedStrings.js ${WEB_INSPECTOR_DIR}
10         COMMAND ${CMAKE_COMMAND} -E copy ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html ${WEB_INSPECTOR_DIR}
11         DEPENDS JavaScriptCore WebCore
12         WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
13     )
14     install(DIRECTORY "${CMAKE_BINARY_DIR}/${WEB_INSPECTOR_DIR}"
15         DESTINATION ${DATA_INSTALL_DIR}
16         FILES_MATCHING PATTERN "*.js"
17                        PATTERN "*.html"
18                        PATTERN "*.css"
19                        PATTERN "*.gif"
20                        PATTERN "*.png"
21                        PATTERN "*.svg")
22
23     find_program(UGLIFYJS_EXECUTABLE uglifyjs)
24     if (UGLIFYJS_EXECUTABLE AND (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug"))
25         file(GLOB frontend_js_files "${WEBINSPECTORUI_DIR}/UserInterface/*.js")
26         set(all_js_files
27             ${frontend_js_files}
28             "${WEBINSPECTORUI_DIR}/Localizations/en.lproj/localizedStrings.js"
29         )
30
31         foreach (js_file ${all_js_files})
32             get_filename_component(filename ${js_file} NAME)
33             install(CODE
34                 "execute_process(
35                     COMMAND ${UGLIFYJS_EXECUTABLE} --overwrite ${filename}
36                     WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR})")
37         endforeach ()
38
39         file(GLOB codemirror_js_files "${WEBINSPECTORUI_DIR}/UserInterface/External/CodeMirror/*.js")
40         foreach (js_file ${codemirror_js_files})
41             get_filename_component(filename ${js_file} NAME)
42             install(CODE
43                 "execute_process(
44                     COMMAND ${UGLIFYJS_EXECUTABLE} --overwrite ${filename}
45                     WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR}/External/CodeMirror/)")
46         endforeach ()
47     endif ()
48 endif ()