Adopt -setOverrideRouteSharingPolicy:routingContextUID: SPI
[WebKit-https.git] / Source / CMakeLists.txt
index 6c21606..54fe4a2 100644 (file)
@@ -1,52 +1,55 @@
 # -----------------------------------------------------------------------------
 # Add module directories
 # -----------------------------------------------------------------------------
+if (NOT USE_SYSTEM_MALLOC)
+    add_subdirectory(bmalloc)
+endif ()
+
 add_subdirectory(WTF)
 
+if (USE_CAPSTONE)
+    add_subdirectory(ThirdParty/capstone)
+endif ()
+
 add_subdirectory(JavaScriptCore)
 
-if (ENABLE_API_TESTS)
-    add_subdirectory(cmake/gtest)
+if (WIN32 AND ENABLE_GRAPHICS_CONTEXT_3D)
+    add_subdirectory(ThirdParty/ANGLE)
 endif ()
 
-if (ENABLE_WEBCORE)
-    add_subdirectory(WebCore)
+if (ENABLE_API_TESTS)
+    add_subdirectory(ThirdParty/gtest)
 endif ()
 
-if (ENABLE_WEBKIT)
-    add_subdirectory(WebKit)
+if (USE_OPENVR)
+    # OpenVR is compiled with -stdlib=libc++ as default if Clang is used.
+    # Disable USE_LIBCXX not to use -stdlib=libc++.
+    option(USE_LIBCXX "Uses libc++ instead of libstdc++" OFF)
+    add_subdirectory(ThirdParty/openvr)
 endif ()
 
-if (ENABLE_WEBKIT2)
-    add_subdirectory(WebKit2)
+if (USE_XDGMIME)
+    add_subdirectory(ThirdParty/xdgmime)
 endif ()
 
-WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
-
-# -----------------------------------------------------------------------------
-# Set compiler flags for all targets
-# -----------------------------------------------------------------------------
-if (${PORT} STREQUAL "Efl")
-    set(ADDITIONAL_FLAGS ENABLE_WERROR)
+if (USE_LIBWEBRTC)
+    add_subdirectory(ThirdParty/libwebrtc)
 endif ()
 
-WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WTF_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
-WEBKIT_SET_EXTRA_COMPILER_FLAGS(${JavaScriptCore_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
-
 if (ENABLE_WEBCORE)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCoreTestSupport_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCore_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
+    add_subdirectory(WebCore)
+endif ()
+
+if (ENABLE_WEBKIT_LEGACY)
+    add_subdirectory(WebKitLegacy)
 endif ()
 
 if (ENABLE_WEBKIT)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
+    add_subdirectory(WebKit)
 endif ()
 
-if (ENABLE_WEBKIT2)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit2_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
+if (ENABLE_WEBDRIVER)
+    add_subdirectory(WebDriver)
 endif ()
 
-# -----------------------------------------------------------------------------
-# Create the configuration file
-# -----------------------------------------------------------------------------
-configure_file(cmakeconfig.h.cmake ${CMAKE_BINARY_DIR}/cmakeconfig.h @ONLY)
+WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()