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