2010-05-15 Leandro Pereira <leandro@profusion.mobi>
[WebKit-https.git] / WebKit / CMakeLists.txt
1 SET(WebKit_INCLUDE_DIRECTORIES
2     "${WEBKIT_DIR}"
3     "${WEBCORE_DIR}"
4     "${WEBCORE_DIR}/bindings/js"
5     "${WEBCORE_DIR}/bridge"
6     "${WEBCORE_DIR}/bridge/jsc"
7     "${WEBCORE_DIR}/css"
8     "${WEBCORE_DIR}/dom"
9     "${WEBCORE_DIR}/editing"
10     "${WEBCORE_DIR}/history"
11     "${WEBCORE_DIR}/html"
12     "${WEBCORE_DIR}/inspector"
13     "${WEBCORE_DIR}/loader"
14     "${WEBCORE_DIR}/loader/icon"
15     "${WEBCORE_DIR}/page"
16     "${WEBCORE_DIR}/page/animation"
17     "${WEBCORE_DIR}/platform"
18     "${WEBCORE_DIR}/platform/animation"
19     "${WEBCORE_DIR}/platform/graphics"
20     "${WEBCORE_DIR}/platform/graphics/cairo"
21     "${WEBCORE_DIR}/platform/graphics/transforms"
22     "${WEBCORE_DIR}/platform/network"
23     "${WEBCORE_DIR}/platform/network/soup"
24     "${WEBCORE_DIR}/platform/sql"
25     "${WEBCORE_DIR}/platform/text"
26     "${WEBCORE_DIR}/plugins"
27     "${WEBCORE_DIR}/rendering"
28     "${WEBCORE_DIR}/rendering/style"
29     "${WEBCORE_DIR}/storage"
30     "${WEBCORE_DIR}/svg"
31     "${JAVASCRIPTCORE_DIR}"
32     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
33     "${JAVASCRIPTCORE_DIR}/API"
34     "${JAVASCRIPTCORE_DIR}/assembler"
35     "${JAVASCRIPTCORE_DIR}/bytecode"
36     "${JAVASCRIPTCORE_DIR}/bytecompiler"
37     "${JAVASCRIPTCORE_DIR}/debugger"
38     "${JAVASCRIPTCORE_DIR}/interpreter"
39     "${JAVASCRIPTCORE_DIR}/jit"
40     "${JAVASCRIPTCORE_DIR}/parser"
41     "${JAVASCRIPTCORE_DIR}/profiler"
42     "${JAVASCRIPTCORE_DIR}/runtime"
43     "${JAVASCRIPTCORE_DIR}/wtf"
44     "${JAVASCRIPTCORE_DIR}/wtf/unicode"
45     "${DERIVED_SOURCES_DIR}"
46     "${CMAKE_BINARY_DIR}"
47 )
48
49 SET(WebKit_LIBRARIES
50     ${JavaScriptCore_LIBRARY_NAME}
51     ${WebCore_LIBRARY_NAME}
52 )
53
54 INCLUDE_IF_EXISTS(${WEBKIT_DIR}/CMakeLists${PORT}.txt)
55
56 ADD_DEFINITIONS(-DBUILDING_WebKit)
57 INCLUDE_DIRECTORIES(${WebKit_INCLUDE_DIRECTORIES})
58 ADD_LIBRARY(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
59 TARGET_LINK_LIBRARIES(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARIES})
60 ADD_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} LINK_FLAGS ${WebKit_LINK_FLAGS})
61
62 INSTALL(TARGETS ${WebKit_LIBRARY_NAME} DESTINATION lib)
63