[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / windowing / wayland / CMakeLists.txt
blobc406de112f230176f2aa5c15386d844ff3cdea7d
1 # from ArchSetup.cmake
2 set_source_files_properties(${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-extra-protocols.cpp
3                             ${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-extra-protocols.hpp
4                             PROPERTIES GENERATED TRUE)
6 set(SOURCES Connection.cpp
7             OptionalsReg.cpp
8             Output.cpp
9             InputProcessorKeyboard.h
10             InputProcessorPointer.h
11             InputProcessorTouch.h
12             OSScreenSaverIdleInhibitUnstableV1.cpp
13             Registry.cpp
14             Seat.cpp
15             SeatInputProcessing.cpp
16             SeatSelection.cpp
17             ShellSurface.cpp
18             ShellSurfaceWlShell.cpp
19             ShellSurfaceXdgShell.cpp
20             ShellSurfaceXdgShellUnstableV6.cpp
21             Util.cpp
22             VideoSyncWpPresentation.cpp
23             ${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-extra-protocols.cpp
24             WindowDecorator.cpp
25             WinEventsWayland.cpp
26             WinSystemWayland.cpp
27             XkbcommonKeymap.cpp)
29 set(HEADERS Connection.h
30             OptionalsReg.h
31             Output.h
32             InputProcessorKeyboard.cpp
33             InputProcessorPointer.cpp
34             InputProcessorTouch.cpp
35             OSScreenSaverIdleInhibitUnstableV1.h
36             Registry.h
37             Seat.h
38             SeatInputProcessing.h
39             SeatSelection.h
40             ShellSurface.h
41             ShellSurfaceWlShell.h
42             ShellSurfaceXdgShell.h
43             ShellSurfaceXdgShellUnstableV6.h
44             Signals.h
45             VideoSyncWpPresentation.h
46             ${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-extra-protocols.hpp
47             WindowDecorator.h
48             WinEventsWayland.h
49             WinSystemWayland.h
50             XkbcommonKeymap.h)
52 if(TARGET EGL::EGL)
53   list(APPEND SOURCES WinSystemWaylandEGLContext.cpp)
54   list(APPEND HEADERS WinSystemWaylandEGLContext.h)
55 endif()
57 if(TARGET OpenGL::GL)
58   list(APPEND SOURCES WinSystemWaylandEGLContextGL.cpp)
59   list(APPEND HEADERS WinSystemWaylandEGLContextGL.h)
60 endif()
61 if(TARGET OpenGL::GLES)
62   list(APPEND SOURCES WinSystemWaylandEGLContextGLES.cpp)
63   list(APPEND HEADERS WinSystemWaylandEGLContextGLES.h)
64 endif()
65 if(TARGET_WEBOS)
66   set_source_files_properties(${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.cpp
67                               ${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.hpp
68                               PROPERTIES GENERATED TRUE)
70   list(APPEND SOURCES OSScreenSaverWebOS.cpp
71                       SeatWebOS.cpp
72                       ShellSurfaceWebOSShell.cpp
73                       WinSystemWaylandWebOS.cpp
74                       ${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.cpp)
75   list(APPEND HEADERS OSScreenSaverWebOS.h
76                       SeatWebOS.h
77                       ShellSurfaceWebOSShell.h
78                       WinSystemWaylandWebOS.h
79                       ${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-webos-protocols.hpp)
80 endif()
82 core_add_library(windowing_WAYLAND)