Warning, /plasma/kwin/cmake/modules/FindXwayland.cmake is written in an unsupported language. File is not indexed.
0001 #.rst: 0002 # FindXwayland 0003 # ------- 0004 # 0005 # Try to find Xwayland on a Unix system. 0006 # 0007 # This will define the following variables: 0008 # 0009 # ``Xwayland_FOUND`` 0010 # True if (the requested version of) Xwayland is available 0011 # ``Xwayland_VERSION`` 0012 # The version of Xwayland 0013 # ``Xwayland_HAVE_LISTENFD`` 0014 # True if (the requested version of) Xwayland has -listenfd option 0015 0016 #============================================================================= 0017 # SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org> 0018 # SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0019 # 0020 # SPDX-License-Identifier: BSD-3-Clause 0021 #============================================================================= 0022 0023 find_package(PkgConfig) 0024 pkg_check_modules(PKG_xwayland QUIET xwayland) 0025 0026 set(Xwayland_VERSION ${PKG_xwayland_VERSION}) 0027 pkg_get_variable(Xwayland_HAVE_LISTENFD xwayland have_listenfd) 0028 0029 find_program(Xwayland_EXECUTABLE NAMES Xwayland) 0030 find_package_handle_standard_args(Xwayland 0031 FOUND_VAR Xwayland_FOUND 0032 REQUIRED_VARS Xwayland_EXECUTABLE 0033 VERSION_VAR Xwayland_VERSION 0034 ) 0035 mark_as_advanced( 0036 Xwayland_EXECUTABLE 0037 Xwayland_HAVE_LISTENFD 0038 Xwayland_VERSION 0039 )