Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/CMakeLists.txt
1 | include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS}) | 1 | include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS}) | ||
---|---|---|---|---|---|
2 | include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS}) | 2 | include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS}) | ||
3 | 3 | | |||
4 | set(QPA_SOURCES | 4 | set(QPA_SOURCES | ||
5 | abstractplatformcontext.cpp | 5 | abstractplatformcontext.cpp | ||
6 | backingstore.cpp | 6 | backingstore.cpp | ||
7 | eglhelpers.cpp | 7 | eglhelpers.cpp | ||
8 | integration.cpp | 8 | integration.cpp | ||
9 | main.cpp | 9 | main.cpp | ||
10 | nativeinterface.cpp | | |||
11 | offscreensurface.cpp | 10 | offscreensurface.cpp | ||
12 | platformcursor.cpp | 11 | platformcursor.cpp | ||
13 | screen.cpp | 12 | screen.cpp | ||
14 | sharingplatformcontext.cpp | 13 | sharingplatformcontext.cpp | ||
15 | window.cpp | 14 | window.cpp | ||
16 | ) | 15 | ) | ||
17 | 16 | | |||
18 | include(ECMQtDeclareLoggingCategory) | 17 | include(ECMQtDeclareLoggingCategory) | ||
19 | ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical) | 18 | ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical) | ||
20 | 19 | | |||
21 | add_library(KWinQpaPlugin MODULE ${QPA_SOURCES}) | 20 | add_library(KWinQpaPlugin MODULE ${QPA_SOURCES}) | ||
22 | set_target_properties(KWinQpaPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platforms/") | 21 | set_target_properties(KWinQpaPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platforms/") | ||
23 | 22 | | |||
24 | set(QT5PLATFORMSUPPORT_LIBS | 23 | set(QT5PLATFORMSUPPORT_LIBS | ||
25 | Qt5FontDatabaseSupport::Qt5FontDatabaseSupport | 24 | Qt5FontDatabaseSupport::Qt5FontDatabaseSupport | ||
26 | Qt5ThemeSupport::Qt5ThemeSupport | 25 | Qt5ThemeSupport::Qt5ThemeSupport | ||
27 | Qt5EventDispatcherSupport::Qt5EventDispatcherSupport | 26 | Qt5EventDispatcherSupport::Qt5EventDispatcherSupport | ||
28 | ) | 27 | ) | ||
29 | 28 | | |||
30 | target_link_libraries(KWinQpaPlugin | 29 | target_link_libraries(KWinQpaPlugin | ||
31 | kwin | 30 | kwin | ||
32 | KF5::WaylandClient | | |||
33 | ${QT5PLATFORMSUPPORT_LIBS} | 31 | ${QT5PLATFORMSUPPORT_LIBS} | ||
34 | Fontconfig::Fontconfig | 32 | Fontconfig::Fontconfig | ||
35 | ${FREETYPE_LIBRARIES} | 33 | ${FREETYPE_LIBRARIES} | ||
36 | ) | 34 | ) | ||
37 | 35 | | |||
38 | install( | 36 | install( | ||
39 | TARGETS | 37 | TARGETS | ||
40 | KWinQpaPlugin | 38 | KWinQpaPlugin | ||
41 | DESTINATION | 39 | DESTINATION | ||
42 | ${PLUGIN_INSTALL_DIR}/platforms/ | 40 | ${PLUGIN_INSTALL_DIR}/platforms/ | ||
43 | ) | 41 | ) |