Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/wayland/CMakeLists.txt
1 | set(WAYLAND_BACKEND_SOURCES | 1 | set(WAYLAND_BACKEND_SOURCES | ||
---|---|---|---|---|---|
2 | logging.cpp | 2 | logging.cpp | ||
3 | scene_qpainter_wayland_backend.cpp | 3 | scene_qpainter_wayland_backend.cpp | ||
4 | wayland_backend.cpp | 4 | wayland_backend.cpp | ||
5 | wayland_output.cpp | 5 | wayland_output.cpp | ||
6 | ) | 6 | ) | ||
7 | 7 | | |||
8 | if (HAVE_WAYLAND_EGL) | 8 | if (HAVE_WAYLAND_EGL) | ||
9 | set(WAYLAND_BACKEND_SOURCES egl_wayland_backend.cpp ${WAYLAND_BACKEND_SOURCES}) | 9 | set(WAYLAND_BACKEND_SOURCES egl_wayland_backend.cpp ${WAYLAND_BACKEND_SOURCES}) | ||
10 | endif() | 10 | endif() | ||
11 | 11 | | |||
12 | include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl) | 12 | include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl) | ||
13 | add_library(KWinWaylandWaylandBackend MODULE ${WAYLAND_BACKEND_SOURCES}) | 13 | add_library(KWinWaylandWaylandBackend MODULE ${WAYLAND_BACKEND_SOURCES}) | ||
14 | set_target_properties(KWinWaylandWaylandBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/") | 14 | set_target_properties(KWinWaylandWaylandBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/") | ||
15 | target_link_libraries(KWinWaylandWaylandBackend kwin KF5::WaylandClient SceneQPainterBackend) | 15 | target_link_libraries(KWinWaylandWaylandBackend kwinwl KF5::WaylandClient SceneQPainterBackend) | ||
16 | 16 | | |||
17 | if (HAVE_WAYLAND_EGL) | 17 | if (HAVE_WAYLAND_EGL) | ||
18 | target_link_libraries(KWinWaylandWaylandBackend SceneOpenGLBackend Wayland::Egl) | 18 | target_link_libraries(KWinWaylandWaylandBackend SceneOpenGLBackend Wayland::Egl) | ||
19 | endif() | 19 | endif() | ||
20 | 20 | | |||
21 | install( | 21 | install( | ||
22 | TARGETS | 22 | TARGETS | ||
23 | KWinWaylandWaylandBackend | 23 | KWinWaylandWaylandBackend | ||
24 | DESTINATION | 24 | DESTINATION | ||
25 | ${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/ | 25 | ${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/ | ||
26 | ) | 26 | ) |