2015-08-14 14:52:40 +00:00
|
|
|
include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
|
|
|
|
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
set(QPA_SOURCES
|
|
|
|
abstractplatformcontext.cpp
|
|
|
|
backingstore.cpp
|
|
|
|
integration.cpp
|
|
|
|
main.cpp
|
|
|
|
nativeinterface.cpp
|
|
|
|
platformcontextwayland.cpp
|
2016-02-17 11:42:12 +00:00
|
|
|
platformcursor.cpp
|
2015-08-14 14:52:40 +00:00
|
|
|
screen.cpp
|
|
|
|
sharingplatformcontext.cpp
|
|
|
|
window.cpp
|
|
|
|
)
|
|
|
|
|
2016-07-18 14:34:03 +00:00
|
|
|
include(ECMQtDeclareLoggingCategory)
|
|
|
|
ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical)
|
|
|
|
|
2015-08-14 14:52:40 +00:00
|
|
|
add_library(KWinQpaPlugin MODULE ${QPA_SOURCES})
|
2016-10-27 00:43:21 +00:00
|
|
|
|
|
|
|
if(Qt5Core_VERSION VERSION_LESS "5.8.0")
|
|
|
|
add_definitions(-DQ_FONTCONFIGDATABASE)
|
|
|
|
set(QT5PLATFORMSUPPORT_LIBS Qt5PlatformSupport::Qt5PlatformSupport)
|
|
|
|
else()
|
|
|
|
set(QT5PLATFORMSUPPORT_LIBS
|
|
|
|
Qt5FontDatabaseSupport::Qt5FontDatabaseSupport
|
|
|
|
Qt5ThemeSupport::Qt5ThemeSupport
|
|
|
|
Qt5EventDispatcherSupport::Qt5EventDispatcherSupport
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2015-08-14 14:52:40 +00:00
|
|
|
target_link_libraries(KWinQpaPlugin
|
|
|
|
kwin
|
|
|
|
KF5::WaylandClient
|
2016-10-27 00:43:21 +00:00
|
|
|
${QT5PLATFORMSUPPORT_LIBS}
|
2015-08-14 14:52:40 +00:00
|
|
|
${FONTCONFIG_LIBRARIES}
|
|
|
|
${FREETYPE_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2015-11-30 07:34:52 +00:00
|
|
|
if(HAVE_WAYLAND_EGL)
|
|
|
|
target_link_libraries(KWinQpaPlugin Wayland::Egl)
|
|
|
|
endif()
|
|
|
|
|
2015-08-14 14:52:40 +00:00
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
KWinQpaPlugin
|
|
|
|
DESTINATION
|
|
|
|
${PLUGIN_INSTALL_DIR}/platforms/
|
|
|
|
)
|