[SVG Masking] Enable the use of <mask> elements for -webkit-mask-image
[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/InspectorBackendCommands.js ${WEB_INSPECTOR_DIR}/Protocol
8         COMMAND ${CMAKE_COMMAND} -E copy ${WEBINSPECTORUI_DIR}/Localizations/en.lproj/localizedStrings.js ${WEB_INSPECTOR_DIR}
9         COMMAND ${CMAKE_COMMAND} -E copy ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html ${WEB_INSPECTOR_DIR}
10         DEPENDS JavaScriptCore WebCore
11         WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
12     )
13     install(DIRECTORY "${CMAKE_BINARY_DIR}/${WEB_INSPECTOR_DIR}"
14         DESTINATION ${DATA_INSTALL_DIR}
15         FILES_MATCHING PATTERN "*.js"
16                        PATTERN "*.html"
17                        PATTERN "*.css"
18                        PATTERN "*.gif"
19                        PATTERN "*.png"
20                        PATTERN "*.svg")
21
22     find_program(UGLIFYJS_EXECUTABLE uglifyjs)
23     if (UGLIFYJS_EXECUTABLE AND (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug"))
24         file(GLOB frontend_js_files "${WEBINSPECTORUI_DIR}/UserInterface/*.js")
25         set(all_js_files
26             ${frontend_js_files}
27             "${WEBINSPECTORUI_DIR}/Localizations/en.lproj/localizedStrings.js"
28         )
29
30         foreach (js_file ${all_js_files})
31             get_filename_component(filename ${js_file} NAME)
32             install(CODE
33                 "execute_process(
34                     COMMAND ${UGLIFYJS_EXECUTABLE} --overwrite ${filename}
35                     WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR})")
36         endforeach ()
37
38         file(GLOB codemirror_js_files "${WEBINSPECTORUI_DIR}/UserInterface/External/CodeMirror/*.js")
39         foreach (js_file ${codemirror_js_files})
40             get_filename_component(filename ${js_file} NAME)
41             install(CODE
42                 "execute_process(
43                     COMMAND ${UGLIFYJS_EXECUTABLE} --overwrite ${filename}
44                     WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR}/External/CodeMirror/)")
45         endforeach ()
46     endif ()
47 endif ()