From 3a8fa77c1fd21b9266afe549f9bd308d74439dd0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 27 Jun 2022 16:33:58 +1000 Subject: GHOST/Wayland: Add a build time option for DBUS, disable by default Add WITH_GHOST_WAYLAND_DBUS option, so Blender can be built without DBUS support. Currently it's only used to access the cursor theme. Without this the "default" cursors are used instead. Disabling this since it adds an additional dependency for a minor gain in functionality, with the benefit of removing a library requirement. There is also a problem where Blender hangs on startup for ~5 seconds when DBUS isn't running. Eventually it would be good to be able to avoid this problem without a build option. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 60d980930c1..3c3127e0f64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,9 @@ if(UNIX AND NOT (APPLE OR HAIKU)) if (WITH_GHOST_WAYLAND) option(WITH_GHOST_WAYLAND_LIBDECOR "Optionally build with LibDecor window decorations" OFF) mark_as_advanced(WITH_GHOST_WAYLAND_LIBDECOR) + + option(WITH_GHOST_WAYLAND_DBUS "Optionally build with DBUS support (used for Cursor themes). May hang on startup systems where DBUS is not used." OFF) + mark_as_advanced(WITH_GHOST_WAYLAND_DBUS) endif() endif() -- cgit v1.2.3