REGRESSION(r158561): fast/block/float/float-append-child-crash.html asserting.
[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 ${WEBINSPECTORUI_DIR}/Localizations/en.lproj/localizedStrings.js ${WEB_INSPECTOR_DIR}
8         DEPENDS WebCore
9         WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
10     )
11     install(DIRECTORY "${CMAKE_BINARY_DIR}/${WEB_INSPECTOR_DIR}"
12         DESTINATION ${DATA_INSTALL_DIR}
13         FILES_MATCHING PATTERN "*.js"
14                        PATTERN "*.html"
15                        PATTERN "*.css"
16                        PATTERN "*.gif"
17                        PATTERN "*.png"
18                        PATTERN "*.svg")
19
20     find_program(UGLIFYJS_EXECUTABLE uglifyjs)
21     if (UGLIFYJS_EXECUTABLE AND (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug"))
22         file(GLOB frontend_js_files "${WEBINSPECTORUI_DIR}/UserInterface/*.js")
23         set(all_js_files
24             ${frontend_js_files}
25             "${WEBINSPECTORUI_DIR}/Localizations/en.lproj/localizedStrings.js"
26         )
27
28         foreach (js_file ${all_js_files})
29             get_filename_component(filename ${js_file} NAME)
30             install(CODE
31                 "execute_process(
32                     COMMAND ${UGLIFYJS_EXECUTABLE} --overwrite ${filename}
33                     WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR})")
34         endforeach ()
35
36         file(GLOB codemirror_js_files "${WEBINSPECTORUI_DIR}/UserInterface/External/CodeMirror/*.js")
37         foreach (js_file ${codemirror_js_files})
38             get_filename_component(filename ${js_file} NAME)
39             install(CODE
40                 "execute_process(
41                     COMMAND ${UGLIFYJS_EXECUTABLE} --overwrite ${filename}
42                     WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR}/External/CodeMirror/)")
43         endforeach ()
44     endif ()
45 endif ()