PlatformEfl.cmake 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. add_subdirectory(${WEBCORE_DIR}/platform/efl/DefaultTheme)
  2. if (ENABLE_INSPECTOR)
  3. add_custom_target(
  4. web-inspector-resources ALL
  5. COMMAND ${CMAKE_COMMAND} -E copy_directory ${WEBCORE_DIR}/inspector/front-end ${WEB_INSPECTOR_DIR}
  6. COMMAND ${CMAKE_COMMAND} -E copy ${WEBCORE_DIR}/English.lproj/localizedStrings.js ${WEB_INSPECTOR_DIR}
  7. COMMAND ${CMAKE_COMMAND} -E copy ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html ${WEB_INSPECTOR_DIR}
  8. COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js ${WEB_INSPECTOR_DIR}
  9. DEPENDS WebCore
  10. WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
  11. )
  12. install(DIRECTORY "${CMAKE_BINARY_DIR}/${WEB_INSPECTOR_DIR}"
  13. DESTINATION ${DATA_INSTALL_DIR}
  14. FILES_MATCHING PATTERN "*.js"
  15. PATTERN "*.html"
  16. PATTERN "*.css"
  17. PATTERN "*.gif"
  18. PATTERN "*.png")
  19. find_program(UGLIFYJS_EXECUTABLE uglifyjs)
  20. if (UGLIFYJS_EXECUTABLE AND (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug"))
  21. file(GLOB frontend_js_files "${WEBCORE_DIR}/inspector/front-end/*.js")
  22. set(all_js_files
  23. ${frontend_js_files}
  24. "${WEBCORE_DIR}/English.lproj/localizedStrings.js"
  25. "${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js"
  26. )
  27. foreach (js_file ${all_js_files})
  28. get_filename_component(filename ${js_file} NAME)
  29. install(CODE
  30. "execute_process(
  31. COMMAND ${UGLIFYJS_EXECUTABLE} --overwrite ${filename}
  32. WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR})")
  33. endforeach ()
  34. endif ()
  35. endif ()