summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/CMakeLists.txt
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-13 16:23:25 +0100
committerBen Murdoch <benm@google.com>2011-05-16 11:35:02 +0100
commit65f03d4f644ce73618e5f4f50dd694b26f55ae12 (patch)
treef478babb801e720de7bfaee23443ffe029f58731 /Source/WebKit/CMakeLists.txt
parent47de4a2fb7262c7ebdb9cd133ad2c54c187454d0 (diff)
downloadexternal_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.zip
external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.gz
external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.bz2
Merge WebKit at r75993: Initial merge by git.
Change-Id: I602bbdc3974787a3b0450456a30a7868286921c3
Diffstat (limited to 'Source/WebKit/CMakeLists.txt')
-rw-r--r--Source/WebKit/CMakeLists.txt81
1 files changed, 81 insertions, 0 deletions
diff --git a/Source/WebKit/CMakeLists.txt b/Source/WebKit/CMakeLists.txt
new file mode 100644
index 0000000..5de532d
--- /dev/null
+++ b/Source/WebKit/CMakeLists.txt
@@ -0,0 +1,81 @@
+SET(WebKit_INCLUDE_DIRECTORIES
+ "${WEBKIT_DIR}"
+ "${WEBCORE_DIR}"
+ "${WEBCORE_DIR}/accessibility"
+ "${WEBCORE_DIR}/bindings/js"
+ "${WEBCORE_DIR}/bindings"
+ "${WEBCORE_DIR}/bridge"
+ "${WEBCORE_DIR}/bridge/jsc"
+ "${WEBCORE_DIR}/css"
+ "${WEBCORE_DIR}/dom"
+ "${WEBCORE_DIR}/editing"
+ "${WEBCORE_DIR}/history"
+ "${WEBCORE_DIR}/html"
+ "${WEBCORE_DIR}/inspector"
+ "${WEBCORE_DIR}/loader"
+ "${WEBCORE_DIR}/loader/icon"
+ "${WEBCORE_DIR}/loader/cache"
+ "${WEBCORE_DIR}/page"
+ "${WEBCORE_DIR}/page/animation"
+ "${WEBCORE_DIR}/platform"
+ "${WEBCORE_DIR}/platform/animation"
+ "${WEBCORE_DIR}/platform/graphics"
+ "${WEBCORE_DIR}/platform/graphics/transforms"
+ "${WEBCORE_DIR}/platform/network"
+ "${WEBCORE_DIR}/platform/sql"
+ "${WEBCORE_DIR}/platform/text"
+ "${WEBCORE_DIR}/plugins"
+ "${WEBCORE_DIR}/rendering"
+ "${WEBCORE_DIR}/rendering/style"
+ "${WEBCORE_DIR}/storage"
+ "${WEBCORE_DIR}/svg"
+ "${WEBCORE_DIR}/svg/properties"
+ "${JAVASCRIPTCORE_DIR}"
+ "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
+ "${JAVASCRIPTCORE_DIR}/API"
+ "${JAVASCRIPTCORE_DIR}/assembler"
+ "${JAVASCRIPTCORE_DIR}/bytecode"
+ "${JAVASCRIPTCORE_DIR}/bytecompiler"
+ "${JAVASCRIPTCORE_DIR}/debugger"
+ "${JAVASCRIPTCORE_DIR}/interpreter"
+ "${JAVASCRIPTCORE_DIR}/jit"
+ "${JAVASCRIPTCORE_DIR}/parser"
+ "${JAVASCRIPTCORE_DIR}/profiler"
+ "${JAVASCRIPTCORE_DIR}/runtime"
+ "${JAVASCRIPTCORE_DIR}/wtf"
+ "${JAVASCRIPTCORE_DIR}/wtf/unicode"
+ "${DERIVED_SOURCES_DIR}"
+ "${CMAKE_BINARY_DIR}"
+)
+
+IF (WTF_USE_SOUP)
+ LIST(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/soup")
+ENDIF ()
+
+IF (WTF_USE_CURL)
+ LIST(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/curl")
+ENDIF ()
+
+SET(WebKit_LIBRARIES
+ ${JavaScriptCore_LIBRARY_NAME}
+ ${WebCore_LIBRARY_NAME}
+)
+
+STRING(TOLOWER ${PORT} WEBKIT_PORT_DIR)
+INCLUDE_IF_EXISTS(${WEBKIT_DIR}/${WEBKIT_PORT_DIR}/CMakeLists${PORT}.txt)
+
+ADD_DEFINITIONS(-DBUILDING_WebKit)
+INCLUDE_DIRECTORIES(${WebKit_INCLUDE_DIRECTORIES})
+ADD_LIBRARY(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
+TARGET_LINK_LIBRARIES(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARIES})
+
+IF (WebKit_LINK_FLAGS)
+ ADD_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} LINK_FLAGS "${WebKit_LINK_FLAGS}")
+ENDIF ()
+
+IF (VERSION_SCRIPT)
+ ADD_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} LINK_FLAGS "${VERSION_SCRIPT}")
+ENDIF ()
+
+SET_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
+INSTALL(TARGETS ${WebKit_LIBRARY_NAME} DESTINATION lib)