PlatformGTK.cmake 988 B

12345678910111213141516171819
  1. if (ENABLE_INSPECTOR)
  2. add_custom_target(
  3. web-inspector-resources ALL
  4. COMMAND ${CMAKE_COMMAND} -E copy_directory ${WEBCORE_DIR}/inspector/front-end ${DATA_BUILD_DIR}/webinspector
  5. COMMAND ${CMAKE_COMMAND} -E copy ${WEBCORE_DIR}/English.lproj/localizedStrings.js ${DATA_BUILD_DIR}/webinspector
  6. COMMAND ${CMAKE_COMMAND} -E copy ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html ${DATA_BUILD_DIR}/webinspector
  7. COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js ${DATA_BUILD_DIR}/webinspector
  8. DEPENDS WebCore
  9. WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
  10. )
  11. install(DIRECTORY "${DATA_BUILD_DIR}/webinspector"
  12. DESTINATION "${DATA_INSTALL_DIR}/webinspector"
  13. FILES_MATCHING PATTERN "*.js"
  14. PATTERN "*.html"
  15. PATTERN "*.css"
  16. PATTERN "*.gif"
  17. PATTERN "*.png")
  18. endif ()