[WebIDL] Remove the need for the generator to know about native type mapping
[WebKit.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)
34     add_subdirectory(WebKit)
35 endif ()
36
37 if (ENABLE_WEBKIT2)
38     add_subdirectory(WebKit2)
39 endif ()
40
41 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
42
43 # -----------------------------------------------------------------------------
44 # Set compiler flags for all targets
45 # -----------------------------------------------------------------------------
46 if (NOT USE_SYSTEM_MALLOC)
47     WEBKIT_SET_EXTRA_COMPILER_FLAGS(bmalloc ${ADDITIONAL_COMPILER_FLAGS})
48 endif ()
49 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WTF ${ADDITIONAL_COMPILER_FLAGS})
50 WEBKIT_SET_EXTRA_COMPILER_FLAGS(JavaScriptCore ${ADDITIONAL_COMPILER_FLAGS})
51
52 if (ENABLE_WEBCORE)
53     WEBKIT_SET_EXTRA_COMPILER_FLAGS(PAL ${ADDITIONAL_COMPILER_FLAGS})
54     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_COMPILER_FLAGS})
55     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_COMPILER_FLAGS})
56     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreDerivedSources ${ADDITIONAL_COMPILER_FLAGS})
57 endif ()
58
59 if (ENABLE_WEBKIT)
60     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit ${ADDITIONAL_COMPILER_FLAGS})
61 endif ()
62
63 if (ENABLE_WEBKIT2)
64     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit2 ${ADDITIONAL_COMPILER_FLAGS})
65 endif ()