CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # -----------------------------------------------------------------------------
  2. # Add module directories
  3. # -----------------------------------------------------------------------------
  4. add_subdirectory(WTF)
  5. add_subdirectory(JavaScriptCore)
  6. if (ENABLE_API_TESTS)
  7. add_subdirectory(cmake/gtest)
  8. endif ()
  9. if (ENABLE_WEBCORE)
  10. add_subdirectory(WebCore)
  11. endif ()
  12. if (ENABLE_WEBKIT)
  13. add_subdirectory(WebKit)
  14. endif ()
  15. if (ENABLE_WEBKIT2)
  16. add_subdirectory(WebKit2)
  17. endif ()
  18. WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
  19. # -----------------------------------------------------------------------------
  20. # Set compiler flags for all targets
  21. # -----------------------------------------------------------------------------
  22. if (${PORT} STREQUAL "Efl")
  23. set(ADDITIONAL_FLAGS ENABLE_WERROR)
  24. endif ()
  25. WEBKIT_SET_EXTRA_COMPILER_FLAGS(WTF ${ADDITIONAL_FLAGS})
  26. WEBKIT_SET_EXTRA_COMPILER_FLAGS(JavaScriptCore ${ADDITIONAL_FLAGS})
  27. if (ENABLE_WEBCORE)
  28. WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCoreTestSupport ${ADDITIONAL_FLAGS})
  29. WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCore ${ADDITIONAL_FLAGS})
  30. endif ()
  31. if (ENABLE_WEBKIT)
  32. WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit ${ADDITIONAL_FLAGS})
  33. endif ()
  34. if (ENABLE_WEBKIT2)
  35. WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebKit2 ${ADDITIONAL_FLAGS})
  36. endif ()
  37. # -----------------------------------------------------------------------------
  38. # Create the configuration file
  39. # -----------------------------------------------------------------------------
  40. configure_file(cmakeconfig.h.cmake ${CMAKE_BINARY_DIR}/cmakeconfig.h @ONLY)