Build fix: r142549 broke EFL build
[WebKit-https.git] / Source / WebKit / CMakeLists.txt
1 set(WebKit_INCLUDE_DIRECTORIES
2     "${WEBKIT_DIR}"
3     "${WEBCORE_DIR}"
4     "${WEBCORE_DIR}/Modules/networkinfo"
5     "${WEBCORE_DIR}/Modules/webdatabase"
6     "${WEBCORE_DIR}/accessibility"
7     "${WEBCORE_DIR}/bindings/generic"
8     "${WEBCORE_DIR}/bindings/js"
9     "${WEBCORE_DIR}/bindings"
10     "${WEBCORE_DIR}/bridge"
11     "${WEBCORE_DIR}/bridge/c"
12     "${WEBCORE_DIR}/bridge/jsc"
13     "${WEBCORE_DIR}/css"
14     "${WEBCORE_DIR}/dom"
15     "${WEBCORE_DIR}/dom/default"
16     "${WEBCORE_DIR}/editing"
17     "${WEBCORE_DIR}/history"
18     "${WEBCORE_DIR}/html"
19     "${WEBCORE_DIR}/html/shadow"
20     "${WEBCORE_DIR}/inspector"
21     "${WEBCORE_DIR}/loader"
22     "${WEBCORE_DIR}/loader/appcache"
23     "${WEBCORE_DIR}/loader/icon"
24     "${WEBCORE_DIR}/loader/cache"
25     "${WEBCORE_DIR}/page"
26     "${WEBCORE_DIR}/page/animation"
27     "${WEBCORE_DIR}/platform"
28     "${WEBCORE_DIR}/platform/animation"
29     "${WEBCORE_DIR}/platform/graphics"
30     "${WEBCORE_DIR}/platform/graphics/filters"
31     "${WEBCORE_DIR}/platform/graphics/harfbuzz"
32     "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
33     "${WEBCORE_DIR}/platform/graphics/opengl"
34     "${WEBCORE_DIR}/platform/graphics/transforms"
35     "${WEBCORE_DIR}/platform/network"
36     "${WEBCORE_DIR}/platform/sql"
37     "${WEBCORE_DIR}/platform/text"
38     "${WEBCORE_DIR}/plugins"
39     "${WEBCORE_DIR}/rendering"
40     "${WEBCORE_DIR}/rendering/style"
41     "${WEBCORE_DIR}/storage"
42     "${WEBCORE_DIR}/svg"
43     "${WEBCORE_DIR}/svg/graphics"
44     "${WEBCORE_DIR}/svg/properties"
45     "${WEBCORE_DIR}/workers"
46     "${JAVASCRIPTCORE_DIR}"
47     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
48     "${JAVASCRIPTCORE_DIR}/API"
49     "${JAVASCRIPTCORE_DIR}/assembler"
50     "${JAVASCRIPTCORE_DIR}/bytecode"
51     "${JAVASCRIPTCORE_DIR}/bytecompiler"
52     "${JAVASCRIPTCORE_DIR}/disassembler"
53     "${JAVASCRIPTCORE_DIR}/dfg"
54     "${JAVASCRIPTCORE_DIR}/heap"
55     "${JAVASCRIPTCORE_DIR}/debugger"
56     "${JAVASCRIPTCORE_DIR}/interpreter"
57     "${JAVASCRIPTCORE_DIR}/jit"
58     "${JAVASCRIPTCORE_DIR}/llint"
59     "${JAVASCRIPTCORE_DIR}/parser"
60     "${JAVASCRIPTCORE_DIR}/profiler"
61     "${JAVASCRIPTCORE_DIR}/runtime"
62     "${WTF_DIR}"
63     "${DERIVED_SOURCES_WEBCORE_DIR}"
64     "${CMAKE_BINARY_DIR}"
65 )
66
67 if (WTF_USE_SOUP)
68   list(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/soup")
69 endif ()
70
71 if (WTF_USE_CURL)
72   list(APPEND WebKit_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/network/curl")
73 endif ()
74
75 set(WebKit_LIBRARIES
76     ${WebCore_LIBRARY_NAME}
77 )
78
79 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
80
81 add_definitions(-DBUILDING_WebKit)
82 include_directories(${WebKit_INCLUDE_DIRECTORIES})
83 add_library(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
84 add_dependencies(${WebKit_LIBRARY_NAME} ${WebCore_LIBRARY_NAME})
85 target_link_libraries(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARIES})
86 set_target_properties(${WebKit_LIBRARY_NAME} PROPERTIES FOLDER "WebKit")
87 set_target_properties(${WebKit_LIBRARY_NAME} PROPERTIES LINK_INTERFACE_LIBRARIES "")
88
89 if (WebKit_LINK_FLAGS)
90     ADD_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} LINK_FLAGS "${WebKit_LINK_FLAGS}")
91 endif ()
92
93 if (VERSION_SCRIPT)
94     ADD_TARGET_PROPERTIES(${WebKit_LIBRARY_NAME} LINK_FLAGS "${VERSION_SCRIPT}")
95 endif ()
96
97 set_target_properties(${WebKit_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
98 install(TARGETS ${WebKit_LIBRARY_NAME} DESTINATION "${LIB_INSTALL_DIR}")