run-jsc-benchmarks geomean of preferred means shouldn't print the VMs header twice
[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 if (ENABLE_API_TESTS)
14     add_subdirectory(ThirdParty/gtest)
15 endif ()
16
17 if (ENABLE_WEBCORE)
18     add_subdirectory(WebCore)
19 endif ()
20
21 if (ENABLE_WEBKIT)
22     add_subdirectory(WebKit)
23 endif ()
24
25 if (ENABLE_WEBKIT2)
26     add_subdirectory(WebKit2)
27 endif ()
28
29 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
30
31 # -----------------------------------------------------------------------------
32 # Set compiler flags for all targets
33 # -----------------------------------------------------------------------------
34 WEBKIT_SET_EXTRA_COMPILER_FLAGS(bmalloc ${ADDITIONAL_COMPILER_FLAGS})
35 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WTF ${ADDITIONAL_COMPILER_FLAGS})
36 WEBKIT_SET_EXTRA_COMPILER_FLAGS(JavaScriptCore ${ADDITIONAL_COMPILER_FLAGS})
37
38 if (ENABLE_WEBCORE)
39     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_COMPILER_FLAGS})
40     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_COMPILER_FLAGS})
41 endif ()
42
43 if (ENABLE_WEBKIT)
44     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit ${ADDITIONAL_COMPILER_FLAGS})
45 endif ()
46
47 if (ENABLE_WEBKIT2)
48     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit2 ${ADDITIONAL_COMPILER_FLAGS})
49 endif ()
50
51 # -----------------------------------------------------------------------------
52 # Create the configuration file
53 # -----------------------------------------------------------------------------
54 configure_file(cmakeconfig.h.cmake ${CMAKE_BINARY_DIR}/cmakeconfig.h @ONLY)