[EFL] Turn on errors on warnings for WebKit1 and WebKit2 libraries
[WebKit-https.git] / Source / CMakeLists.txt
1 # -----------------------------------------------------------------------------
2 # Add module directories
3 # -----------------------------------------------------------------------------
4 ADD_SUBDIRECTORY(WTF)
5
6 ADD_SUBDIRECTORY(JavaScriptCore)
7
8 IF (ENABLE_API_TESTS)
9     ADD_SUBDIRECTORY(cmake/gtest)
10 ENDIF ()
11
12 IF (ENABLE_WEBCORE)
13     ADD_SUBDIRECTORY(WebCore)
14 ENDIF ()
15
16 IF (ENABLE_WEBKIT)
17     ADD_SUBDIRECTORY(WebKit)
18 ENDIF ()
19
20 IF (ENABLE_WEBKIT2)
21     ADD_SUBDIRECTORY(WebKit2)
22 ENDIF ()
23
24 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
25
26 # -----------------------------------------------------------------------------
27 # Set compiler flags for all targets
28 # -----------------------------------------------------------------------------
29 IF (${PORT} STREQUAL "Efl")
30     SET(ADDITIONAL_FLAGS ENABLE_WERROR)
31 ENDIF ()
32
33 WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WTF_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
34 WEBKIT_SET_EXTRA_COMPILER_FLAGS(${JavaScriptCore_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
35 WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCoreTestSupport_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
36
37 IF (ENABLE_WEBCORE)
38     WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebCore_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
39 ENDIF ()
40
41 IF (ENABLE_WEBKIT)
42     WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
43 ENDIF ()
44
45 IF (ENABLE_WEBKIT2)
46     WEBKIT_SET_EXTRA_COMPILER_FLAGS(${WebKit2_LIBRARY_NAME} ${ADDITIONAL_FLAGS})
47 ENDIF ()
48
49 # -----------------------------------------------------------------------------
50 # Create the configuration file
51 # -----------------------------------------------------------------------------
52 CONFIGURE_FILE(cmakeconfig.h.cmake ${CMAKE_BINARY_DIR}/cmakeconfig.h @ONLY)