CMakeLists.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. set(WebKit_INCLUDE_DIRECTORIES
  2. "${CMAKE_SOURCE_DIR}/Source"
  3. "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
  4. "${WEBKIT_DIR}"
  5. "${WEBCORE_DIR}"
  6. "${WEBCORE_DIR}/Modules/filesystem"
  7. "${WEBCORE_DIR}/Modules/networkinfo"
  8. "${WEBCORE_DIR}/Modules/webdatabase"
  9. "${WEBCORE_DIR}/accessibility"
  10. "${WEBCORE_DIR}/bindings/generic"
  11. "${WEBCORE_DIR}/bindings/js"
  12. "${WEBCORE_DIR}/bindings"
  13. "${WEBCORE_DIR}/bridge"
  14. "${WEBCORE_DIR}/bridge/c"
  15. "${WEBCORE_DIR}/bridge/jsc"
  16. "${WEBCORE_DIR}/css"
  17. "${WEBCORE_DIR}/dom"
  18. "${WEBCORE_DIR}/dom/default"
  19. "${WEBCORE_DIR}/editing"
  20. "${WEBCORE_DIR}/history"
  21. "${WEBCORE_DIR}/html"
  22. "${WEBCORE_DIR}/html/forms"
  23. "${WEBCORE_DIR}/html/shadow"
  24. "${WEBCORE_DIR}/inspector"
  25. "${WEBCORE_DIR}/loader"
  26. "${WEBCORE_DIR}/loader/appcache"
  27. "${WEBCORE_DIR}/loader/icon"
  28. "${WEBCORE_DIR}/loader/cache"
  29. "${WEBCORE_DIR}/page"
  30. "${WEBCORE_DIR}/page/animation"
  31. "${WEBCORE_DIR}/platform"
  32. "${WEBCORE_DIR}/platform/animation"
  33. "${WEBCORE_DIR}/platform/graphics"
  34. "${WEBCORE_DIR}/platform/graphics/filters"
  35. "${WEBCORE_DIR}/platform/graphics/harfbuzz"
  36. "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
  37. "${WEBCORE_DIR}/platform/graphics/opengl"
  38. "${WEBCORE_DIR}/platform/graphics/transforms"
  39. "${WEBCORE_DIR}/platform/network"
  40. "${WEBCORE_DIR}/platform/sql"
  41. "${WEBCORE_DIR}/platform/text"
  42. "${WEBCORE_DIR}/plugins"
  43. "${WEBCORE_DIR}/rendering"
  44. "${WEBCORE_DIR}/rendering/shapes"
  45. "${WEBCORE_DIR}/rendering/style"
  46. "${WEBCORE_DIR}/storage"
  47. "${WEBCORE_DIR}/svg"
  48. "${WEBCORE_DIR}/svg/graphics"
  49. "${WEBCORE_DIR}/svg/properties"
  50. "${WEBCORE_DIR}/workers"
  51. "${JAVASCRIPTCORE_DIR}"
  52. "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
  53. "${JAVASCRIPTCORE_DIR}/API"
  54. "${JAVASCRIPTCORE_DIR}/assembler"
  55. "${JAVASCRIPTCORE_DIR}/bytecode"
  56. "${JAVASCRIPTCORE_DIR}/bytecompiler"
  57. "${JAVASCRIPTCORE_DIR}/disassembler"
  58. "${JAVASCRIPTCORE_DIR}/dfg"
  59. "${JAVASCRIPTCORE_DIR}/heap"
  60. "${JAVASCRIPTCORE_DIR}/debugger"
  61. "${JAVASCRIPTCORE_DIR}/interpreter"
  62. "${JAVASCRIPTCORE_DIR}/jit"
  63. "${JAVASCRIPTCORE_DIR}/llint"
  64. "${JAVASCRIPTCORE_DIR}/parser"
  65. "${JAVASCRIPTCORE_DIR}/profiler"
  66. "${JAVASCRIPTCORE_DIR}/runtime"
  67. "${WTF_DIR}"
  68. "${DERIVED_SOURCES_WEBCORE_DIR}"
  69. "${CMAKE_BINARY_DIR}"
  70. )
  71. if (WTF_USE_SOUP)
  72. list(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/soup")
  73. endif ()
  74. if (WTF_USE_CURL)
  75. list(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/curl")
  76. endif ()
  77. set(WebKit_LIBRARIES
  78. WebCore
  79. )
  80. WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
  81. add_definitions(-DBUILDING_WebKit)
  82. include_directories(${WebKit_INCLUDE_DIRECTORIES})
  83. add_library(WebKit ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
  84. add_dependencies(WebKit WebCore)
  85. target_link_libraries(WebKit ${WebKit_LIBRARIES})
  86. set_target_properties(WebKit PROPERTIES FOLDER "WebKit")
  87. set_target_properties(WebKit PROPERTIES LINK_INTERFACE_LIBRARIES "")
  88. if (WebKit_LINK_FLAGS)
  89. ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "${WebKit_LINK_FLAGS}")
  90. endif ()
  91. if (VERSION_SCRIPT)
  92. ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "${VERSION_SCRIPT}")
  93. endif ()
  94. if (WebKit_OUTPUT_NAME)
  95. set_target_properties(WebKit PROPERTIES OUTPUT_NAME ${WebKit_OUTPUT_NAME})
  96. endif ()
  97. set_target_properties(WebKit PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
  98. install(TARGETS WebKit DESTINATION "${LIB_INSTALL_DIR}")