[EFL] Unreviewed; fix the build after r109877.
[WebKit-https.git] / Source / WebKit / CMakeLists.txt
1 SET(WebKit_INCLUDE_DIRECTORIES
2     "${WEBKIT_DIR}"
3     "${WEBCORE_DIR}"
4     "${WEBCORE_DIR}/Modules/webdatabase"
5     "${WEBCORE_DIR}/accessibility"
6     "${WEBCORE_DIR}/bindings/js"
7     "${WEBCORE_DIR}/bindings"
8     "${WEBCORE_DIR}/bridge"
9     "${WEBCORE_DIR}/bridge/c"
10     "${WEBCORE_DIR}/bridge/jsc"
11     "${WEBCORE_DIR}/css"
12     "${WEBCORE_DIR}/dom"
13     "${WEBCORE_DIR}/editing"
14     "${WEBCORE_DIR}/history"
15     "${WEBCORE_DIR}/html"
16     "${WEBCORE_DIR}/inspector"
17     "${WEBCORE_DIR}/loader"
18     "${WEBCORE_DIR}/loader/appcache"
19     "${WEBCORE_DIR}/loader/icon"
20     "${WEBCORE_DIR}/loader/cache"
21     "${WEBCORE_DIR}/page"
22     "${WEBCORE_DIR}/page/animation"
23     "${WEBCORE_DIR}/platform"
24     "${WEBCORE_DIR}/platform/animation"
25     "${WEBCORE_DIR}/platform/graphics"
26     "${WEBCORE_DIR}/platform/graphics/filters"
27     "${WEBCORE_DIR}/platform/graphics/transforms"
28     "${WEBCORE_DIR}/platform/network"
29     "${WEBCORE_DIR}/platform/sql"
30     "${WEBCORE_DIR}/platform/text"
31     "${WEBCORE_DIR}/plugins"
32     "${WEBCORE_DIR}/rendering"
33     "${WEBCORE_DIR}/rendering/style"
34     "${WEBCORE_DIR}/storage"
35     "${WEBCORE_DIR}/svg"
36     "${WEBCORE_DIR}/svg/graphics"
37     "${WEBCORE_DIR}/svg/properties"
38     "${JAVASCRIPTCORE_DIR}"
39     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
40     "${JAVASCRIPTCORE_DIR}/API"
41     "${JAVASCRIPTCORE_DIR}/assembler"
42     "${JAVASCRIPTCORE_DIR}/bytecode"
43     "${JAVASCRIPTCORE_DIR}/bytecompiler"
44     "${JAVASCRIPTCORE_DIR}/dfg"
45     "${JAVASCRIPTCORE_DIR}/heap"
46     "${JAVASCRIPTCORE_DIR}/debugger"
47     "${JAVASCRIPTCORE_DIR}/interpreter"
48     "${JAVASCRIPTCORE_DIR}/jit"
49     "${JAVASCRIPTCORE_DIR}/llint"
50     "${JAVASCRIPTCORE_DIR}/parser"
51     "${JAVASCRIPTCORE_DIR}/profiler"
52     "${JAVASCRIPTCORE_DIR}/runtime"
53     "${JAVASCRIPTCORE_DIR}/wtf"
54     "${JAVASCRIPTCORE_DIR}/wtf/unicode"
55     "${DERIVED_SOURCES_WEBCORE_DIR}"
56     "${CMAKE_BINARY_DIR}"
57 )
58
59 IF (WTF_USE_SOUP)
60   LIST(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/soup")
61 ENDIF ()
62
63 IF (WTF_USE_CURL)
64   LIST(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/curl")
65 ENDIF ()
66
67 SET(WebKit_LIBRARIES
68     ${WebCore_LIBRARY_NAME}
69 )
70
71 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
72
73 ADD_DEFINITIONS(-DBUILDING_WebKit)
74 INCLUDE_DIRECTORIES(${WebKit_INCLUDE_DIRECTORIES})
75 ADD_LIBRARY(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
76 ADD_DEPENDENCIES(${WebKit_LIBRARY_NAME} ${WebCore_LIBRARY_NAME})
77 TARGET_LINK_LIBRARIES(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARIES})
78
79 IF (WebKit_LINK_FLAGS)
80     ADD_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} LINK_FLAGS "${WebKit_LINK_FLAGS}")
81 ENDIF ()
82
83 IF (VERSION_SCRIPT)
84     ADD_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} LINK_FLAGS "${VERSION_SCRIPT}")
85 ENDIF ()
86
87 SET_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
88 INSTALL(TARGETS ${WebKit_LIBRARY_NAME} DESTINATION "${LIB_INSTALL_DIR}")