[CMake] Autogenerate cmakeconfig.h.cmake
[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 (ENABLE_API_TESTS)
16     add_subdirectory(ThirdParty/gtest)
17 endif ()
18
19 if (ENABLE_WEBKIT)
20     add_subdirectory(WebKit)
21 endif ()
22
23 if (ENABLE_WEBKIT2)
24     add_subdirectory(WebKit2)
25 endif ()
26
27 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
28
29 # -----------------------------------------------------------------------------
30 # Set compiler flags for all targets
31 # -----------------------------------------------------------------------------
32 WEBKIT_SET_EXTRA_COMPILER_FLAGS(bmalloc ${ADDITIONAL_COMPILER_FLAGS})
33 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WTF ${ADDITIONAL_COMPILER_FLAGS})
34 WEBKIT_SET_EXTRA_COMPILER_FLAGS(JavaScriptCore ${ADDITIONAL_COMPILER_FLAGS})
35 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_COMPILER_FLAGS})
36 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_COMPILER_FLAGS})
37
38 if (ENABLE_WEBKIT)
39     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit ${ADDITIONAL_COMPILER_FLAGS})
40 endif ()
41
42 if (ENABLE_WEBKIT2)
43     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit2 ${ADDITIONAL_COMPILER_FLAGS})
44 endif ()