[GTK] Add support for WOFF2
[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 add_subdirectory(WebCore)
13
14 if (WIN32 AND ENABLE_GRAPHICS_CONTEXT_3D)
15     add_subdirectory(ThirdParty/ANGLE)
16 endif ()
17
18 if (ENABLE_API_TESTS)
19     add_subdirectory(ThirdParty/gtest)
20 endif ()
21
22 if (USE_WOFF2)
23     add_subdirectory(ThirdParty/brotli)
24     add_subdirectory(ThirdParty/woff2)
25 endif ()
26
27 if (ENABLE_WEBKIT)
28     add_subdirectory(WebKit)
29 endif ()
30
31 if (ENABLE_WEBKIT2)
32     add_subdirectory(WebKit2)
33 endif ()
34
35 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
36
37 # -----------------------------------------------------------------------------
38 # Set compiler flags for all targets
39 # -----------------------------------------------------------------------------
40 if (NOT USE_SYSTEM_MALLOC)
41     WEBKIT_SET_EXTRA_COMPILER_FLAGS(bmalloc ${ADDITIONAL_COMPILER_FLAGS})
42 endif ()
43 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WTF ${ADDITIONAL_COMPILER_FLAGS})
44 WEBKIT_SET_EXTRA_COMPILER_FLAGS(JavaScriptCore ${ADDITIONAL_COMPILER_FLAGS})
45 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_COMPILER_FLAGS})
46 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_COMPILER_FLAGS})
47
48 if (ENABLE_WEBKIT)
49     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit ${ADDITIONAL_COMPILER_FLAGS})
50 endif ()
51
52 if (ENABLE_WEBKIT2)
53     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit2 ${ADDITIONAL_COMPILER_FLAGS})
54 endif ()