1 add_subdirectory(${WEBCORE_DIR}/platform/gtk/po)
3 # This allows exposing a 'gir' target which builds all GObject introspection files.
4 add_custom_target(gir ALL DEPENDS ${GObjectIntrospectionTargets})
6 set(DocumentationDependencies
7 "${CMAKE_SOURCE_DIR}/Source/WebKit/gtk/docs/webkitenvironment.xml"
11 list(APPEND DocumentationDependencies
13 "${CMAKE_SOURCE_DIR}/Source/WebKit/gtk/docs/webkitgtk-docs.sgml"
14 "${CMAKE_SOURCE_DIR}/Source/WebKit/gtk/docs/webkitgtk-sections.txt"
16 install(DIRECTORY ${CMAKE_BINARY_DIR}/Documentation/webkitgtk/html/
17 DESTINATION ${CMAKE_INSTALL_DATADIR}/gtk-doc/html/webkitgtk
22 list(APPEND DocumentationDependencies
24 "${CMAKE_SOURCE_DIR}/Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml"
25 "${CMAKE_SOURCE_DIR}/Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-sections.txt"
27 install(DIRECTORY ${CMAKE_BINARY_DIR}/Documentation/webkit2gtk/html/
28 DESTINATION ${CMAKE_INSTALL_DATADIR}/gtk-doc/html/webkit2gtk
33 OUTPUT "${CMAKE_BINARY_DIR}/docs-build.stamp"
34 DEPENDS ${DocumentationDependencies}
35 COMMAND CC="${CMAKE_C_COMPILER}" ${CMAKE_SOURCE_DIR}/Tools/gtk/generate-gtkdoc
36 COMMAND touch docs-build.stamp
37 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
40 add_custom_target(fake-docs-target ALL
41 DEPENDS "${CMAKE_BINARY_DIR}/docs-build.stamp"
45 add_dependencies(fake-docs-target WebKit)
49 add_dependencies(fake-docs-target WebKit2)
52 add_custom_target(check
53 COMMAND ${TOOLS_DIR}/Scripts/run-gtk-tests
54 COMMAND ${TOOLS_DIR}/gtk/check-for-webkitdom-api-breaks
57 if (ENABLE_WEBKIT AND ENABLE_WEBKIT2)
59 OUTPUT ${CMAKE_BINARY_DIR}/webkitgtk-${PROJECT_VERSION}.tar
60 DEPENDS ${TOOLS_DIR}/gtk/make-dist.py
61 DEPENDS ${TOOLS_DIR}/gtk/manifest.txt
64 COMMAND ${TOOLS_DIR}/gtk/make-dist.py
65 --source-dir=${CMAKE_SOURCE_DIR}
66 --build-dir=${CMAKE_BINARY_DIR}
67 --tarball-root=/webkitgtk-${PROJECT_VERSION}
68 -o ${CMAKE_BINARY_DIR}/webkitgtk-${PROJECT_VERSION}.tar
69 ${TOOLS_DIR}/gtk/manifest.txt
73 OUTPUT ${CMAKE_BINARY_DIR}/webkitgtk-${PROJECT_VERSION}.tar.xz
74 DEPENDS ${CMAKE_BINARY_DIR}/webkitgtk-${PROJECT_VERSION}.tar
75 COMMAND xz -f ${CMAKE_BINARY_DIR}/webkitgtk-${PROJECT_VERSION}.tar
78 add_custom_target(dist
79 DEPENDS ${CMAKE_BINARY_DIR}/webkitgtk-${PROJECT_VERSION}.tar.xz