Web Inspector: Extension scripts with parse errors do not show up in Web Inspector
[WebKit-https.git] / Source / PlatformWPE.cmake
1 include(GtkDoc)
2 include(WebKitDist)
3
4 list(APPEND DocumentationDependencies
5     WebKit
6     "${CMAKE_SOURCE_DIR}/Source/WebKit/UIProcess/API/wpe/docs/wpe-docs.sgml"
7     "${CMAKE_SOURCE_DIR}/Source/WebKit/WebProcess/InjectedBundle/API/wpe/docs/wpe-webextensions-docs.sgml"
8     "${CMAKE_SOURCE_DIR}/Source/WebKit/UIProcess/API/wpe/docs/wpe-${WPE_API_VERSION}-sections.txt"
9     "${CMAKE_SOURCE_DIR}/Source/WebKit/WebProcess/InjectedBundle/API/wpe/docs/wpe-webextensions-${WPE_API_VERSION}-sections.txt"
10 )
11
12 if (ENABLE_GTKDOC)
13     install(DIRECTORY ${CMAKE_BINARY_DIR}/Documentation/wpe-${WPE_API_VERSION}/html/wpe-${WPE_API_VERSION}
14             DESTINATION "${CMAKE_INSTALL_DATADIR}/gtk-doc/html"
15     )
16     install(DIRECTORY ${CMAKE_BINARY_DIR}/Documentation/wpe-webextensions-${WPE_API_VERSION}/html/wpe-webextensions-${WPE_API_VERSION}
17         DESTINATION "${CMAKE_INSTALL_DATADIR}/gtk-doc/html"
18     )
19 endif ()
20
21 ADD_GTKDOC_GENERATOR("docs-build.stamp" "--wpe")
22 if (ENABLE_GTKDOC)
23     add_custom_target(gtkdoc ALL DEPENDS "${CMAKE_BINARY_DIR}/docs-build.stamp")
24 elseif (NOT ENABLED_COMPILER_SANITIZERS AND NOT CMAKE_CROSSCOMPILING AND NOT APPLE)
25     add_custom_target(gtkdoc DEPENDS "${CMAKE_BINARY_DIR}/docs-build.stamp")
26
27     # Add a default build step which check that documentation does not have any warnings
28     # or errors. This is useful to prevent breaking documentation inadvertently during
29     # the course of development.
30     if (DEVELOPER_MODE)
31         ADD_GTKDOC_GENERATOR("docs-build-no-html.stamp" "--wpe;--skip-html")
32         add_custom_target(gtkdoc-no-html ALL DEPENDS "${CMAKE_BINARY_DIR}/docs-build-no-html.stamp")
33     endif ()
34 endif ()
35
36 if (DEVELOPER_MODE)
37     add_custom_target(Documentation DEPENDS gtkdoc)
38     WEBKIT_DECLARE_DIST_TARGETS(WPE wpewebkit ${TOOLS_DIR}/wpe/manifest.txt.in)
39 endif ()