Rename EventHandler::freeDataTransfer to invalidateDataTransfer
[WebKit-https.git] / Source / CMakeLists.txt
1 # -----------------------------------------------------------------------------
2 # Add module directories
3 # -----------------------------------------------------------------------------
4 if (NOT USE_SYSTEM_MALLOC)
5     add_subdirectory(bmalloc)
6 endif ()
7
8 add_subdirectory(WTF)
9
10 add_subdirectory(JavaScriptCore)
11
12 if (WIN32 AND ENABLE_GRAPHICS_CONTEXT_3D)
13     add_subdirectory(ThirdParty/ANGLE)
14 endif ()
15
16 if (ENABLE_API_TESTS)
17     add_subdirectory(ThirdParty/gtest)
18 endif ()
19
20 if (USE_WOFF2)
21     add_subdirectory(ThirdParty/brotli)
22     add_subdirectory(ThirdParty/woff2)
23 endif ()
24
25 if (ENABLE_WEBCORE)
26     add_subdirectory(WebCore)
27 endif ()
28
29 if (ENABLE_WEBKIT)
30     add_subdirectory(WebKit)
31 endif ()
32
33 if (ENABLE_WEBKIT2)
34     add_subdirectory(WebKit2)
35 endif ()
36
37 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
38
39 # -----------------------------------------------------------------------------
40 # Set compiler flags for all targets
41 # -----------------------------------------------------------------------------
42 if (NOT USE_SYSTEM_MALLOC)
43     WEBKIT_SET_EXTRA_COMPILER_FLAGS(bmalloc ${ADDITIONAL_COMPILER_FLAGS})
44 endif ()
45 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WTF ${ADDITIONAL_COMPILER_FLAGS})
46 WEBKIT_SET_EXTRA_COMPILER_FLAGS(JavaScriptCore ${ADDITIONAL_COMPILER_FLAGS})
47
48 if (ENABLE_WEBCORE)
49     WEBKIT_SET_EXTRA_COMPILER_FLAGS(PAL ${ADDITIONAL_COMPILER_FLAGS})
50     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_COMPILER_FLAGS})
51     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_COMPILER_FLAGS})
52     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreDerivedSources ${ADDITIONAL_COMPILER_FLAGS})
53 endif ()
54
55 if (ENABLE_WEBKIT)
56     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit ${ADDITIONAL_COMPILER_FLAGS})
57 endif ()
58
59 if (ENABLE_WEBKIT2)
60     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit2 ${ADDITIONAL_COMPILER_FLAGS})
61 endif ()