2015-08-14 14:52:40 +00:00
|
|
|
include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
|
|
|
|
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
set(QPA_SOURCES
|
|
|
|
backingstore.cpp
|
2019-07-01 18:33:04 +00:00
|
|
|
eglhelpers.cpp
|
2020-10-12 06:27:27 +00:00
|
|
|
eglplatformcontext.cpp
|
2015-08-14 14:52:40 +00:00
|
|
|
integration.cpp
|
|
|
|
main.cpp
|
2019-07-01 18:34:38 +00:00
|
|
|
offscreensurface.cpp
|
2016-02-17 11:42:12 +00:00
|
|
|
platformcursor.cpp
|
2015-08-14 14:52:40 +00:00
|
|
|
screen.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)
|
|
|
|
|
2020-11-20 14:28:47 +00:00
|
|
|
add_library(KWinQpaPlugin OBJECT ${QPA_SOURCES})
|
|
|
|
target_compile_definitions(KWinQpaPlugin PRIVATE QT_STATICPLUGIN)
|
2016-10-27 00:43:21 +00:00
|
|
|
|
2018-11-04 12:22:15 +00:00
|
|
|
set(QT5PLATFORMSUPPORT_LIBS
|
2020-05-14 18:40:53 +00:00
|
|
|
Qt5::FontDatabaseSupportPrivate
|
|
|
|
Qt5::ThemeSupportPrivate
|
|
|
|
Qt5::EventDispatcherSupportPrivate
|
2016-10-27 00:43:21 +00:00
|
|
|
)
|
|
|
|
|
2015-08-14 14:52:40 +00:00
|
|
|
target_link_libraries(KWinQpaPlugin
|
2016-10-27 00:43:21 +00:00
|
|
|
${QT5PLATFORMSUPPORT_LIBS}
|
2019-09-18 09:45:23 +00:00
|
|
|
${FREETYPE_LIBRARIES} # Must be after QT5PLATFORMSUPPORT_LIBS
|
2018-12-12 18:15:53 +00:00
|
|
|
Fontconfig::Fontconfig
|
2019-09-17 09:15:35 +00:00
|
|
|
kwin
|
2015-08-14 14:52:40 +00:00
|
|
|
)
|