[WPE] Build more files under WebCore as unified sources and get rid of WebCorePlatfor...
[WebKit-https.git] / Source / WebCore / PlatformWPE.cmake
1 include(platform/Cairo.cmake)
2 include(platform/FreeType.cmake)
3 include(platform/GCrypt.cmake)
4 include(platform/GStreamer.cmake)
5 include(platform/ImageDecoders.cmake)
6 include(platform/TextureMapper.cmake)
7
8 list(APPEND WebCore_UNIFIED_SOURCE_LIST_FILES
9     "SourcesWPE.txt"
10
11     "platform/SourcesGLib.txt"
12     "platform/SourcesSoup.txt"
13 )
14
15 # FIXME: This can't go into SourcesGLib.txt because it has to go into WebCorePlatformGTK.
16 list(APPEND WebCore_SOURCES
17     platform/glib/EventHandlerGLib.cpp
18 )
19
20 # Allow building ANGLE on platforms that don't provide X11 headers.
21 list(APPEND ANGLE_PLATFORM_DEFINITIONS "USE_WPE")
22
23 list(APPEND WebCore_INCLUDE_DIRECTORIES
24     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}"
25     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector"
26     ${JAVASCRIPTCORE_DIR}
27     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
28     "${JAVASCRIPTCORE_DIR}/API"
29     "${JAVASCRIPTCORE_DIR}/assembler"
30     "${JAVASCRIPTCORE_DIR}/bytecode"
31     "${JAVASCRIPTCORE_DIR}/bytecompiler"
32     "${JAVASCRIPTCORE_DIR}/dfg"
33     "${JAVASCRIPTCORE_DIR}/disassembler"
34     "${JAVASCRIPTCORE_DIR}/domjit"
35     "${JAVASCRIPTCORE_DIR}/heap"
36     "${JAVASCRIPTCORE_DIR}/debugger"
37     "${JAVASCRIPTCORE_DIR}/interpreter"
38     "${JAVASCRIPTCORE_DIR}/jit"
39     "${JAVASCRIPTCORE_DIR}/llint"
40     "${JAVASCRIPTCORE_DIR}/parser"
41     "${JAVASCRIPTCORE_DIR}/profiler"
42     "${JAVASCRIPTCORE_DIR}/runtime"
43     "${JAVASCRIPTCORE_DIR}/yarr"
44     "${THIRDPARTY_DIR}/ANGLE/"
45     "${THIRDPARTY_DIR}/ANGLE/include/KHR"
46     "${WEBCORE_DIR}/platform/graphics/egl"
47     "${WEBCORE_DIR}/platform/graphics/epoxy"
48     "${WEBCORE_DIR}/platform/graphics/glx"
49     "${WEBCORE_DIR}/platform/graphics/gstreamer"
50     "${WEBCORE_DIR}/platform/graphics/opengl"
51     "${WEBCORE_DIR}/platform/graphics/opentype"
52     "${WEBCORE_DIR}/platform/graphics/wpe"
53     "${WEBCORE_DIR}/platform/graphics/wayland"
54     "${WEBCORE_DIR}/platform/mock/mediasource"
55     "${WEBCORE_DIR}/platform/network/soup"
56     "${WEBCORE_DIR}/platform/text/icu"
57     ${WTF_DIR}
58 )
59
60 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
61     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.css
62 )
63
64 set(WebCore_USER_AGENT_SCRIPTS
65     ${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js
66     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.js
67 )
68
69 set(WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES ${WEBCORE_DIR}/platform/wpe/RenderThemeWPE.cpp)
70
71 list(APPEND WebCore_LIBRARIES
72     ${CAIRO_LIBRARIES}
73     ${GLIB_GIO_LIBRARIES}
74     ${GLIB_GMODULE_LIBRARIES}
75     ${GLIB_GOBJECT_LIBRARIES}
76     ${GLIB_LIBRARIES}
77     ${ICU_LIBRARIES}
78     ${LIBSOUP_LIBRARIES}
79     ${LIBTASN1_LIBRARIES}
80     ${UPOWERGLIB_LIBRARIES}
81     ${WPE_LIBRARIES}
82 )
83
84 list(APPEND WebCore_INCLUDE_DIRECTORIES
85     ${CAIRO_INCLUDE_DIRS}
86     ${GIO_UNIX_INCLUDE_DIRS}
87     ${GLIB_INCLUDE_DIRS}
88     ${ICU_INCLUDE_DIRS}
89     ${LIBSOUP_INCLUDE_DIRS}
90     ${LIBTASN1_INCLUDE_DIRS}
91     ${UPOWERGLIB_INCLUDE_DIRS}
92     ${WPE_INCLUDE_DIRS}
93 )