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