Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | |||||
170 | endif() | 170 | endif() | ||
171 | 171 | | |||
172 | find_package(XKB 0.7.0) | 172 | find_package(XKB 0.7.0) | ||
173 | set_package_properties(XKB PROPERTIES | 173 | set_package_properties(XKB PROPERTIES | ||
174 | TYPE REQUIRED | 174 | TYPE REQUIRED | ||
175 | PURPOSE "Required for building KWin with Wayland support" | 175 | PURPOSE "Required for building KWin with Wayland support" | ||
176 | ) | 176 | ) | ||
177 | 177 | | |||
178 | find_package(Libinput 1.5) | 178 | find_package(Libinput 1.9) | ||
179 | set_package_properties(Libinput PROPERTIES TYPE OPTIONAL PURPOSE "Required for input handling on Wayland.") | 179 | set_package_properties(Libinput PROPERTIES TYPE OPTIONAL PURPOSE "Required for input handling on Wayland.") | ||
180 | 180 | | |||
181 | find_package(UDev) | 181 | find_package(UDev) | ||
182 | set_package_properties(UDev PROPERTIES URL "http://www.freedesktop.org/software/systemd/libudev/" | 182 | set_package_properties(UDev PROPERTIES URL "http://www.freedesktop.org/software/systemd/libudev/" | ||
183 | DESCRIPTION "Linux device library." | 183 | DESCRIPTION "Linux device library." | ||
184 | TYPE OPTIONAL | 184 | TYPE OPTIONAL | ||
185 | PURPOSE "Required for input handling on Wayland." | 185 | PURPOSE "Required for input handling on Wayland." | ||
186 | ) | 186 | ) | ||
187 | set(HAVE_INPUT FALSE) | 187 | set(HAVE_INPUT FALSE) | ||
188 | set(HAVE_INPUT_1_9 FALSE) | | |||
189 | if (Libinput_FOUND AND UDEV_FOUND) | 188 | if (Libinput_FOUND AND UDEV_FOUND) | ||
190 | set(HAVE_INPUT TRUE) | 189 | set(HAVE_INPUT TRUE) | ||
191 | if(${Libinput_VERSION} VERSION_GREATER "1.9.0" OR ${Libinput_VERSION} VERSION_EQUAL "1.9.0") | | |||
192 | set(HAVE_INPUT_1_9 TRUE) | | |||
193 | endif() | | |||
194 | endif() | 190 | endif() | ||
195 | set(HAVE_UDEV FALSE) | 191 | set(HAVE_UDEV FALSE) | ||
196 | if (UDEV_FOUND) | 192 | if (UDEV_FOUND) | ||
197 | set(HAVE_UDEV TRUE) | 193 | set(HAVE_UDEV TRUE) | ||
198 | endif() | 194 | endif() | ||
199 | 195 | | |||
200 | find_package(Libdrm 2.4.62) | 196 | find_package(Libdrm 2.4.62) | ||
201 | set_package_properties(Libdrm PROPERTIES TYPE OPTIONAL PURPOSE "Required for drm output on Wayland.") | 197 | set_package_properties(Libdrm PROPERTIES TYPE OPTIONAL PURPOSE "Required for drm output on Wayland.") | ||
▲ Show 20 Lines • Show All 538 Lines • Show Last 20 Lines |