Apply cmake-format

This commit is contained in:
Martchus 2023-10-29 21:23:18 +01:00
parent c347bbfe1f
commit 671617bf10
1 changed files with 6 additions and 9 deletions

View File

@ -115,7 +115,8 @@ endif ()
# allow configuring certain features when linking against static Qt # allow configuring certain features when linking against static Qt
option(OPENGL_SUPPORT "whether to enable native Wayland support (when linking against static Qt)" ON) option(OPENGL_SUPPORT "whether to enable native Wayland support (when linking against static Qt)" ON)
option(NATIVE_WAYLAND_SUPPORT "whether to enable native Wayland support (when linking against static Qt)" ON) option(NATIVE_WAYLAND_SUPPORT "whether to enable native Wayland support (when linking against static Qt)" ON)
option(NATIVE_WAYLAND_EGL_SUPPORT "specifies whether to enable native Wayland-EGL support (when linking against static Qt)" OFF) option(NATIVE_WAYLAND_EGL_SUPPORT "specifies whether to enable native Wayland-EGL support (when linking against static Qt)"
OFF)
# built-in platform, imageformat and iconengine plugins when linking statically against Qt # built-in platform, imageformat and iconengine plugins when linking statically against Qt
if (TARGET "${QT_PACKAGE_PREFIX}::Core") if (TARGET "${QT_PACKAGE_PREFIX}::Core")
@ -207,12 +208,8 @@ if (STATIC_LINKAGE OR QT_TARGET_TYPE STREQUAL STATIC_LIBRARY)
ONLY_PLUGINS) ONLY_PLUGINS)
endif () endif ()
set(QT_CONFIG_USE_WAYLAND_INTEGRATION NO) set(QT_CONFIG_USE_WAYLAND_INTEGRATION NO)
set(QT_CONFIG_WAYLAND_CLIENT_PLUGINS set(QT_CONFIG_WAYLAND_CLIENT_PLUGINS WaylandXdgShellIntegration WaylandWlShellIntegration WaylandIviShellIntegration
WaylandXdgShellIntegration WaylandQtShellIntegration)
WaylandWlShellIntegration
WaylandIviShellIntegration
WaylandQtShellIntegration
)
if (NATIVE_WAYLAND_SUPPORT AND TARGET "${QT_PACKAGE_PREFIX}::QWaylandIntegrationPlugin") if (NATIVE_WAYLAND_SUPPORT AND TARGET "${QT_PACKAGE_PREFIX}::QWaylandIntegrationPlugin")
use_qt_module( use_qt_module(
LIBRARIES_VARIABLE LIBRARIES_VARIABLE
@ -224,7 +221,7 @@ if (STATIC_LINKAGE OR QT_TARGET_TYPE STREQUAL STATIC_LIBRARY)
PLUGINS PLUGINS
WaylandIntegration WaylandIntegration
ONLY_PLUGINS) ONLY_PLUGINS)
SET(QT_CONFIG_USE_WAYLAND_INTEGRATION YES) set(QT_CONFIG_USE_WAYLAND_INTEGRATION YES)
endif () endif ()
if (NATIVE_WAYLAND_EGL_SUPPORT AND TARGET "${QT_PACKAGE_PREFIX}::QWaylandEglPlatformIntegrationPlugin") if (NATIVE_WAYLAND_EGL_SUPPORT AND TARGET "${QT_PACKAGE_PREFIX}::QWaylandEglPlatformIntegrationPlugin")
use_qt_module( use_qt_module(
@ -237,7 +234,7 @@ if (STATIC_LINKAGE OR QT_TARGET_TYPE STREQUAL STATIC_LIBRARY)
PLUGINS PLUGINS
WaylandEglPlatformIntegration WaylandEglPlatformIntegration
ONLY_PLUGINS) ONLY_PLUGINS)
SET(QT_CONFIG_USE_WAYLAND_INTEGRATION YES) set(QT_CONFIG_USE_WAYLAND_INTEGRATION YES)
list(APPEND QT_CONFIG_WAYLAND_CLIENT_PLUGINS WaylandEglClientBuffer) list(APPEND QT_CONFIG_WAYLAND_CLIENT_PLUGINS WaylandEglClientBuffer)
endif () endif ()
if (QT_CONFIG_USE_WAYLAND_INTEGRATION) if (QT_CONFIG_USE_WAYLAND_INTEGRATION)