[iOS] Remove unused pre-iOS 11 codepaths for writing to the pasteboard
[WebKit.git] / Source / CMakeLists.txt
index b649977..31fcd89 100644 (file)
@@ -1,42 +1,45 @@
 # -----------------------------------------------------------------------------
 # Add module directories
 # -----------------------------------------------------------------------------
-ADD_SUBDIRECTORY(WTF)
+if (NOT USE_SYSTEM_MALLOC)
+    add_subdirectory(bmalloc)
+endif ()
 
-ADD_SUBDIRECTORY(JavaScriptCore)
+add_subdirectory(WTF)
 
-IF (ENABLE_WEBCORE)
-    ADD_SUBDIRECTORY(WebCore)
-ENDIF ()
+add_subdirectory(JavaScriptCore)
 
-IF (ENABLE_WEBKIT)
-    ADD_SUBDIRECTORY(WebKit)
-ENDIF ()
+if (WIN32 AND ENABLE_GRAPHICS_CONTEXT_3D)
+    add_subdirectory(ThirdParty/ANGLE)
+endif ()
 
-IF (ENABLE_WEBKIT2)
-    ADD_SUBDIRECTORY(WebKit2)
-ENDIF ()
+if (ENABLE_API_TESTS)
+    add_subdirectory(ThirdParty/gtest)
+endif ()
 
-# -----------------------------------------------------------------------------
-# Set compiler flags for all targets
-# -----------------------------------------------------------------------------
-WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WTF_LIBRARY_NAME})
-WEBKIT_SET_EXTRA_COMPILER_FLAGS(${JavaScriptCore_LIBRARY_NAME})
-WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCoreTestSupport_LIBRARY_NAME})
+if (USE_WOFF2)
+    add_subdirectory(ThirdParty/brotli)
+    add_subdirectory(ThirdParty/woff2)
+endif ()
 
-IF (ENABLE_WEBCORE)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCore_LIBRARY_NAME})
-ENDIF ()
+if (USE_XDGMIME)
+    add_subdirectory(ThirdParty/xdgmime)
+endif ()
 
-IF (ENABLE_WEBKIT)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit_LIBRARY_NAME})
-ENDIF ()
+if (ENABLE_WEBCORE)
+    add_subdirectory(WebCore)
+endif ()
 
-IF (ENABLE_WEBKIT2)
-    WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit2_LIBRARY_NAME})
-ENDIF ()
+if (ENABLE_WEBKIT_LEGACY)
+    add_subdirectory(WebKitLegacy)
+endif ()
 
-# -----------------------------------------------------------------------------
-# Create the configuration file
-# -----------------------------------------------------------------------------
-CONFIGURE_FILE(cmakeconfig.h.cmake ${CMAKE_BINARY_DIR}/cmakeconfig.h @ONLY)
+if (ENABLE_WEBKIT)
+    add_subdirectory(WebKit)
+endif ()
+
+if (ENABLE_WEBDRIVER)
+    add_subdirectory(WebDriver)
+endif ()
+
+WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()