[CMake] Merge WebKitEfl.cmake into FindEFL.cmake.
[WebKit-https.git] / Source / WebKit2 / PlatformEfl.cmake
1 LIST(APPEND WebKit2_LINK_FLAGS
2     ${ECORE_X_LDFLAGS}
3     ${EDJE_LDFLAGS}
4     ${EFLDEPS_LDFLAGS}
5     ${EVAS_LDFLAGS}
6 )
7
8 LIST(APPEND WebKit2_SOURCES
9     Platform/efl/ModuleEfl.cpp
10     Platform/efl/RunLoopEfl.cpp
11     Platform/efl/WorkQueueEfl.cpp
12     Platform/unix/SharedMemoryUnix.cpp
13
14     Platform/CoreIPC/unix/ConnectionUnix.cpp
15     Platform/CoreIPC/unix/AttachmentUnix.cpp
16
17     Shared/API/c/gtk/WKGraphicsContextGtk.cpp
18
19     Shared/cairo/LayerTreeContextCairo.cpp
20     Shared/cairo/ShareableBitmapCairo.cpp
21
22     Shared/efl/NativeWebKeyboardEventEfl.cpp
23     Shared/efl/NativeWebWheelEventEfl.cpp
24     Shared/efl/NativeWebMouseEventEfl.cpp
25     Shared/efl/WebEventFactory.cpp
26     Shared/efl/WebCoreArgumentCodersEfl.cpp
27
28     UIProcess/API/efl/PageClientImpl.cpp
29     UIProcess/API/efl/ewk_view.cpp
30
31     UIProcess/cairo/BackingStoreCairo.cpp
32
33     UIProcess/efl/TextCheckerEfl.cpp
34     UIProcess/efl/WebContextEfl.cpp
35     UIProcess/efl/WebInspectorEfl.cpp
36     UIProcess/efl/WebPageProxyEfl.cpp
37     UIProcess/efl/WebPreferencesEfl.cpp
38
39     UIProcess/Launcher/efl/ProcessLauncherEfl.cpp
40     UIProcess/Launcher/efl/ThreadLauncherEfl.cpp
41
42     UIProcess/Plugins/efl/PluginInfoStoreEfl.cpp
43     UIProcess/Plugins/efl/PluginProcessProxyEfl.cpp
44
45     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
46
47     WebProcess/Downloads/efl/DownloadEfl.cpp
48     WebProcess/Downloads/efl/FileDownloaderEfl.cpp
49
50     WebProcess/efl/WebProcessEfl.cpp
51     WebProcess/efl/WebProcessMainEfl.cpp
52
53     WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp
54
55     WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp
56     WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp
57     WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp
58     WebProcess/WebCoreSupport/efl/WebPopupMenuEfl.cpp
59
60     WebProcess/WebPage/efl/WebInspectorEfl.cpp
61     WebProcess/WebPage/efl/WebPageEfl.cpp
62 )
63
64 LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
65     "${JAVASCRIPTCORE_DIR}/wtf/gobject"
66     "${WEBCORE_DIR}/platform/efl"
67     "${WEBCORE_DIR}/platform/graphics/cairo"
68     "${WEBCORE_DIR}/platform/network/soup"
69     "${WEBKIT2_DIR}/Shared/efl"
70     "${WEBKIT2_DIR}/UIProcess/API/efl/"
71     "${WEBKIT2_DIR}/WebProcess/Downloads/efl"
72     "${WEBKIT2_DIR}/WebProcess/efl"
73     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl"
74     ${Cairo_INCLUDE_DIRS}
75     ${ECORE_X_INCLUDE_DIRS}
76     ${EDJE_INCLUDE_DIRS}
77     ${EFLDEPS_INCLUDE_DIRS}
78     ${EVAS_INCLUDE_DIRS}
79     ${LIBXML2_INCLUDE_DIR}
80     ${LIBXSLT_INCLUDE_DIRS}
81     ${SQLITE_INCLUDE_DIRS}
82     ${Glib_INCLUDE_DIRS}
83     ${LIBSOUP24_INCLUDE_DIRS}
84 )
85
86 LIST(APPEND WebKit2_LIBRARIES
87     ${Cairo_LIBRARIES}
88     ${ECORE_X_LIBRARIES}
89     ${EFLDEPS_LIBRARIES}
90     ${Freetype_LIBRARIES}
91     ${LIBXML2_LIBRARIES}
92     ${SQLITE_LIBRARIES}
93     ${FONTCONFIG_LIBRARIES}
94     ${PNG_LIBRARY}
95     ${JPEG_LIBRARY}
96     ${CMAKE_DL_LIBS}
97     ${Glib_LIBRARIES}
98     ${LIBSOUP24_LIBRARIES}
99 )
100
101 LIST (APPEND WebProcess_SOURCES
102     efl/MainEfl.cpp
103 )
104
105 LIST (APPEND WebProcess_LIBRARIES
106     ${Cairo_LIBRARIES}
107     ${ECORE_X_LIBRARIES}
108     ${EDJE_LIBRARIES}
109     ${EFLDEPS_LIBRARIES}
110     ${EVAS_LIBRARIES}
111     ${LIBXML2_LIBRARIES}
112     ${LIBXSLT_LIBRARIES}
113     ${SQLITE_LIBRARIES}
114 )
115
116 ADD_CUSTOM_TARGET(forwarding-headerEfl
117     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
118 )
119 SET(ForwardingHeaders_NAME forwarding-headerEfl)
120
121 ADD_CUSTOM_TARGET(forwarding-headerSoup
122     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
123 )
124 SET(ForwardingNetworkHeaders_NAME forwarding-headerSoup)