Adopt -setOverrideRouteSharingPolicy:routingContextUID: SPI
[WebKit-https.git] / Source / CMakeLists.txt
index 7aac135..54fe4a2 100644 (file)
@@ -1,39 +1,55 @@
 # -----------------------------------------------------------------------------
 # Add module directories
 # -----------------------------------------------------------------------------
-ADD_SUBDIRECTORY(JavaScriptCore)
+if (NOT USE_SYSTEM_MALLOC)
+    add_subdirectory(bmalloc)
+endif ()
 
-IF (ENABLE_WEBCORE)
-    ADD_SUBDIRECTORY(WebCore)
-ENDIF ()
+add_subdirectory(WTF)
 
-IF (ENABLE_WEBKIT)
-    ADD_SUBDIRECTORY(WebKit)
-ENDIF ()
+if (USE_CAPSTONE)
+    add_subdirectory(ThirdParty/capstone)
+endif ()
 
-IF (ENABLE_WEBKIT2)
-    ADD_SUBDIRECTORY(WebKit2)
-ENDIF ()
+add_subdirectory(JavaScriptCore)
 
-# -----------------------------------------------------------------------------
-# Set compiler flags for all targets
-# -----------------------------------------------------------------------------
-WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WTF_LIBRARY_NAME})
-WEBKIT_SET_EXTRA_COMPILER_FLAGS(${JavaScriptCore_LIBRARY_NAME})
+if (WIN32 AND ENABLE_GRAPHICS_CONTEXT_3D)
+    add_subdirectory(ThirdParty/ANGLE)
+endif ()
 
-IF (ENABLE_WEBCORE)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCore_LIBRARY_NAME})
-ENDIF ()
+if (ENABLE_API_TESTS)
+    add_subdirectory(ThirdParty/gtest)
+endif ()
 
-IF (ENABLE_WEBKIT)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit_LIBRARY_NAME})
-ENDIF ()
+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)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit2_LIBRARY_NAME})
-ENDIF ()
+if (USE_XDGMIME)
+    add_subdirectory(ThirdParty/xdgmime)
+endif ()
 
-# -----------------------------------------------------------------------------
-# Create the configuration file
-# -----------------------------------------------------------------------------
-CONFIGURE_FILE(cmakeconfig.h.cmake ${CMAKE_BINARY_DIR}/cmakeconfig.h @ONLY)
+if (USE_LIBWEBRTC)
+    add_subdirectory(ThirdParty/libwebrtc)
+endif ()
+
+if (ENABLE_WEBCORE)
+    add_subdirectory(WebCore)
+endif ()
+
+if (ENABLE_WEBKIT_LEGACY)
+    add_subdirectory(WebKitLegacy)
+endif ()
+
+if (ENABLE_WEBKIT)
+    add_subdirectory(WebKit)
+endif ()
+
+if (ENABLE_WEBDRIVER)
+    add_subdirectory(WebDriver)
+endif ()
+
+WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()