[LFC][IFC] Construct dedicated runs when the inline element requires it (part 2)
[WebKit-https.git] / Source / PlatformWPE.cmake
index 21596bfc0403df9f8f844227dfb97ac5448dcebe..38642e0782cc33bf9475e6ee47ee977185357551 100644 (file)
@@ -1,44 +1,7 @@
-if (DEVELOPER_MODE)
-    find_package(Xz REQUIRED)
-
-    configure_file(
-        ${TOOLS_DIR}/wpe/manifest.txt.in
-        ${CMAKE_BINARY_DIR}/manifest.txt
-    )
-
-    add_custom_target(distcheck
-        COMMENT "Checking release tarball: wpewebkit-${PROJECT_VERSION}.tar"
-        DEPENDS "${CMAKE_BINARY_DIR}/manifest.txt"
-                "${TOOLS_DIR}/gtk/make-dist.py"
-        COMMAND "${TOOLS_DIR}/gtk/make-dist.py"
-                "--check" "--port=WPE"
-                "--tarball-name=wpewebkit"
-                "--source-dir=${CMAKE_SOURCE_DIR}"
-                "--build-dir=${CMAKE_BINARY_DIR}"
-                "--version=${PROJECT_VERSION}"
-                "${CMAKE_BINARY_DIR}/manifest.txt"
-        COMMAND "${XZ_EXECUTABLE}" "-evfQ"
-                "${CMAKE_BINARY_DIR}/wpewebkit-${PROJECT_VERSION}.tar"
-        USES_TERMINAL
-    )
+include(WebKitDist)
 
-    add_custom_command(
-        COMMENT "Creating release tarball: wpewebkit-${PROJECT_VERSION}.tar.xz"
-        OUTPUT "${CMAKE_BINARY_DIR}/wpewebkit-${PROJECT_VERSION}.tar.xz"
-        MAIN_DEPENDENCY "${CMAKE_BINARY_DIR}/manifest.txt"
-        DEPENDS "${TOOLS_DIR}/gtk/make-dist.py"
-        COMMAND "${TOOLS_DIR}/gtk/make-dist.py"
-                "--tarball-name=wpewebkit"
-                "--source-dir=${CMAKE_SOURCE_DIR}"
-                "--build-dir=${CMAKE_BINARY_DIR}"
-                "--version=${PROJECT_VERSION}"
-                "${CMAKE_BINARY_DIR}/manifest.txt"
-        COMMAND "${XZ_EXECUTABLE}" "-evfQ"
-                "${CMAKE_BINARY_DIR}/wpewebkit-${PROJECT_VERSION}.tar"
-        USES_TERMINAL
-    )
-
-    add_custom_target(dist
-        DEPENDS "${CMAKE_BINARY_DIR}/wpewebkit-${PROJECT_VERSION}.tar.xz"
-    )
+if (DEVELOPER_MODE)
+    # FIXME: This should depend on a gtkdoc target
+    add_custom_target(Documentation)
+    WEBKIT_DECLARE_DIST_TARGETS(WPE wpewebkit ${TOOLS_DIR}/wpe/manifest.txt.in)
 endif ()