d815dadb07512c2506d30816c704b9db2e2d12d2
[WebKit-https.git] / Source / CMakeLists.txt
1 # -----------------------------------------------------------------------------
2 # Add module directories
3 # -----------------------------------------------------------------------------
4 # FIXME: Port bmalloc to Windows. https://bugs.webkit.org/show_bug.cgi?id=143310
5 if (NOT WIN32)
6     add_subdirectory(bmalloc)
7 endif ()
8
9 add_subdirectory(WTF)
10
11 add_subdirectory(JavaScriptCore)
12
13 add_subdirectory(WebCore)
14
15 if (WIN32 AND ENABLE_GRAPHICS_CONTEXT_3D)
16     add_subdirectory(ThirdParty/ANGLE)
17 endif ()
18
19 if (ENABLE_API_TESTS)
20     add_subdirectory(ThirdParty/gtest)
21 endif ()
22
23 if (ENABLE_WEBKIT)
24     add_subdirectory(WebKit)
25 endif ()
26
27 if (ENABLE_WEBKIT2)
28     add_subdirectory(WebKit2)
29 endif ()
30
31 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
32
33 # -----------------------------------------------------------------------------
34 # Set compiler flags for all targets
35 # -----------------------------------------------------------------------------
36 # FIXME: Port bmalloc to Windows. https://bugs.webkit.org/show_bug.cgi?id=143310
37 if (NOT WIN32)
38     WEBKIT_SET_EXTRA_COMPILER_FLAGS(bmalloc ${ADDITIONAL_COMPILER_FLAGS})
39 endif ()
40 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WTF ${ADDITIONAL_COMPILER_FLAGS})
41 WEBKIT_SET_EXTRA_COMPILER_FLAGS(JavaScriptCore ${ADDITIONAL_COMPILER_FLAGS})
42 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_COMPILER_FLAGS})
43 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_COMPILER_FLAGS})
44
45 if (ENABLE_WEBKIT)
46     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit ${ADDITIONAL_COMPILER_FLAGS})
47 endif ()
48
49 if (ENABLE_WEBKIT2)
50     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit2 ${ADDITIONAL_COMPILER_FLAGS})
51 endif ()