5bb1dc6ecf5ae7cebc6f5425e7e6d3adfd23b24c
[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 # Allow building ANGLE on platforms that don't provide X11 headers.
16 list(APPEND ANGLE_PLATFORM_DEFINITIONS "USE_WPE")
17
18 list(APPEND WebCore_INCLUDE_DIRECTORIES
19     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}"
20     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector"
21     ${JAVASCRIPTCORE_DIR}
22     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
23     "${JAVASCRIPTCORE_DIR}/API"
24     "${JAVASCRIPTCORE_DIR}/assembler"
25     "${JAVASCRIPTCORE_DIR}/bytecode"
26     "${JAVASCRIPTCORE_DIR}/bytecompiler"
27     "${JAVASCRIPTCORE_DIR}/dfg"
28     "${JAVASCRIPTCORE_DIR}/disassembler"
29     "${JAVASCRIPTCORE_DIR}/domjit"
30     "${JAVASCRIPTCORE_DIR}/heap"
31     "${JAVASCRIPTCORE_DIR}/debugger"
32     "${JAVASCRIPTCORE_DIR}/interpreter"
33     "${JAVASCRIPTCORE_DIR}/jit"
34     "${JAVASCRIPTCORE_DIR}/llint"
35     "${JAVASCRIPTCORE_DIR}/parser"
36     "${JAVASCRIPTCORE_DIR}/profiler"
37     "${JAVASCRIPTCORE_DIR}/runtime"
38     "${JAVASCRIPTCORE_DIR}/yarr"
39     "${THIRDPARTY_DIR}/ANGLE/"
40     "${THIRDPARTY_DIR}/ANGLE/include/KHR"
41     "${WEBCORE_DIR}/platform/graphics/egl"
42     "${WEBCORE_DIR}/platform/graphics/epoxy"
43     "${WEBCORE_DIR}/platform/graphics/glx"
44     "${WEBCORE_DIR}/platform/graphics/gstreamer"
45     "${WEBCORE_DIR}/platform/graphics/opengl"
46     "${WEBCORE_DIR}/platform/graphics/opentype"
47     "${WEBCORE_DIR}/platform/graphics/wpe"
48     "${WEBCORE_DIR}/platform/graphics/wayland"
49     "${WEBCORE_DIR}/platform/mock/mediasource"
50     "${WEBCORE_DIR}/platform/network/soup"
51     "${WEBCORE_DIR}/platform/text/icu"
52     ${WTF_DIR}
53 )
54
55 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
56     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.css
57 )
58
59 set(WebCore_USER_AGENT_SCRIPTS
60     ${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js
61     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.js
62 )
63
64 set(WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES ${WEBCORE_DIR}/platform/wpe/RenderThemeWPE.cpp)
65
66 list(APPEND WebCore_LIBRARIES
67     ${CAIRO_LIBRARIES}
68     ${GLIB_GIO_LIBRARIES}
69     ${GLIB_GMODULE_LIBRARIES}
70     ${GLIB_GOBJECT_LIBRARIES}
71     ${GLIB_LIBRARIES}
72     ${ICU_LIBRARIES}
73     ${LIBSOUP_LIBRARIES}
74     ${UPOWERGLIB_LIBRARIES}
75     ${WPE_LIBRARIES}
76 )
77
78 list(APPEND WebCore_INCLUDE_DIRECTORIES
79     ${CAIRO_INCLUDE_DIRS}
80     ${GIO_UNIX_INCLUDE_DIRS}
81     ${GLIB_INCLUDE_DIRS}
82     ${ICU_INCLUDE_DIRS}
83     ${LIBSOUP_INCLUDE_DIRS}
84     ${UPOWERGLIB_INCLUDE_DIRS}
85     ${WPE_INCLUDE_DIRS}
86 )
87
88 if (ENABLE_SUBTLE_CRYPTO)
89     list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
90         ${LIBTASN1_INCLUDE_DIRS}
91     )
92     list(APPEND WebCore_LIBRARIES
93         ${LIBTASN1_LIBRARIES}
94     )
95 endif ()