2021-02-26 08:48:47 +00:00
|
|
|
#.rst:
|
|
|
|
# FindXwayland
|
|
|
|
# -------
|
|
|
|
#
|
|
|
|
# Try to find Xwayland on a Unix system.
|
|
|
|
#
|
|
|
|
# This will define the following variables:
|
|
|
|
#
|
|
|
|
# ``Xwayland_FOUND``
|
|
|
|
# True if (the requested version of) Xwayland is available
|
|
|
|
# ``Xwayland_VERSION``
|
|
|
|
# The version of Xwayland
|
|
|
|
# ``Xwayland_HAVE_LISTENFD``
|
|
|
|
# True if (the requested version of) Xwayland has -listenfd option
|
2024-04-15 14:51:07 +00:00
|
|
|
# ``Xwayland_HAVE_ENABLE_EI_PORTAL``
|
|
|
|
# True if (the requested version of) Xwayland has -enable-ei-portal option
|
2021-02-26 08:48:47 +00:00
|
|
|
|
2016-02-03 14:48:13 +00:00
|
|
|
#=============================================================================
|
2020-08-02 22:10:35 +00:00
|
|
|
# SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
|
2021-02-26 08:48:47 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
2016-02-03 14:48:13 +00:00
|
|
|
#
|
2020-08-02 22:10:35 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2016-02-03 14:48:13 +00:00
|
|
|
#=============================================================================
|
2021-02-26 08:48:47 +00:00
|
|
|
|
|
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(PKG_xwayland QUIET xwayland)
|
|
|
|
|
|
|
|
set(Xwayland_VERSION ${PKG_xwayland_VERSION})
|
|
|
|
pkg_get_variable(Xwayland_HAVE_LISTENFD xwayland have_listenfd)
|
2024-04-15 14:51:07 +00:00
|
|
|
pkg_get_variable(Xwayland_HAVE_ENABLE_EI_PORTAL xwayland have_enable_ei_portal)
|
2021-02-26 08:48:47 +00:00
|
|
|
|
2016-02-03 14:48:13 +00:00
|
|
|
find_program(Xwayland_EXECUTABLE NAMES Xwayland)
|
|
|
|
find_package_handle_standard_args(Xwayland
|
2021-02-26 08:48:47 +00:00
|
|
|
FOUND_VAR Xwayland_FOUND
|
|
|
|
REQUIRED_VARS Xwayland_EXECUTABLE
|
|
|
|
VERSION_VAR Xwayland_VERSION
|
|
|
|
)
|
|
|
|
mark_as_advanced(
|
|
|
|
Xwayland_EXECUTABLE
|
|
|
|
Xwayland_HAVE_LISTENFD
|
|
|
|
Xwayland_VERSION
|
2016-02-03 14:48:13 +00:00
|
|
|
)
|