1set(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 72if (WTF_USE_SOUP) 73 list(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/soup") 74endif () 75 76if (WTF_USE_CURL) 77 list(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/curl") 78endif () 79 80set(WebKit_LIBRARIES 81 WebCore 82) 83 84WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() 85 86add_definitions(-DBUILDING_WebKit) 87include_directories(${WebKit_INCLUDE_DIRECTORIES}) 88add_library(WebKit ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES}) 89add_dependencies(WebKit WebCore) 90target_link_libraries(WebKit ${WebKit_LIBRARIES}) 91set_target_properties(WebKit PROPERTIES FOLDER "WebKit") 92set_target_properties(WebKit PROPERTIES LINK_INTERFACE_LIBRARIES "") 93 94if (WebKit_LINK_FLAGS) 95 ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "${WebKit_LINK_FLAGS}") 96endif () 97 98if (VERSION_SCRIPT) 99 ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "${VERSION_SCRIPT}") 100endif () 101 102if (WebKit_OUTPUT_NAME) 103 set_target_properties(WebKit PROPERTIES OUTPUT_NAME ${WebKit_OUTPUT_NAME}) 104endif () 105 106set_target_properties(WebKit PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) 107install(TARGETS WebKit DESTINATION "${LIB_INSTALL_DIR}") 108