Improve WebKitLegacy video fullscreen animation begin and end rects.
[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 (USE_XDGMIME)
26     add_subdirectory(ThirdParty/xdgmime)
27 endif ()
28
29 if (ENABLE_WEBCORE)
30     add_subdirectory(WebCore)
31 endif ()
32
33 if (ENABLE_WEBKIT_LEGACY)
34     add_subdirectory(WebKitLegacy)
35 endif ()
36
37 if (ENABLE_WEBKIT)
38     add_subdirectory(WebKit)
39 endif ()
40
41 if (ENABLE_WEBDRIVER)
42     add_subdirectory(WebDriver)
43 endif ()
44
45 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
46
47 # -----------------------------------------------------------------------------
48 # Set compiler flags for all targets
49 # -----------------------------------------------------------------------------
50 if (NOT USE_SYSTEM_MALLOC)
51     WEBKIT_SET_EXTRA_COMPILER_FLAGS(bmalloc ${ADDITIONAL_COMPILER_FLAGS})
52 endif ()
53 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WTF ${ADDITIONAL_COMPILER_FLAGS})
54 WEBKIT_SET_EXTRA_COMPILER_FLAGS(JavaScriptCore ${ADDITIONAL_COMPILER_FLAGS})
55
56 if (ENABLE_WEBCORE)
57     WEBKIT_SET_EXTRA_COMPILER_FLAGS(PAL ${ADDITIONAL_COMPILER_FLAGS})
58     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_COMPILER_FLAGS})
59     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_COMPILER_FLAGS})
60     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreDerivedSources ${ADDITIONAL_COMPILER_FLAGS})
61 endif ()
62
63 if (ENABLE_WEBKIT_LEGACY)
64     # FIXME: Rename this target to WebKitLegacy.
65     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit ${ADDITIONAL_COMPILER_FLAGS})
66 endif ()
67
68 if (ENABLE_WEBKIT)
69     # FIXME: Rename this target to WebKit.
70     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit2 ${ADDITIONAL_COMPILER_FLAGS})
71 endif ()