Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rauch <christian.rauch>2022-06-24 09:10:20 +0300
committerCampbell Barton <campbell@blender.org>2022-06-24 17:10:39 +0300
commit29755e1df82e34061a0b0586234a5aaac5177d35 (patch)
tree0f1b754f25e9492349d1f33b96a71ac9da73c985 /build_files
parentf1d191120f4f1d762369b19bdbf8d9be29000d77 (diff)
GHOST/Wayland: support client-side window decorations
This implements client-side window decorations for moving and resizing windows and HiDPI support. This functionality depends on the external project 'libdecor' that is currently a build option: WITH_GHOST_WAYLAND_LIBDECOR. Reviewed by: brecht, campbellbarton Ref D7989
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/platform/platform_unix.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake
index 6750c23d548..781e2798fea 100644
--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -615,6 +615,10 @@ if(WITH_GHOST_WAYLAND)
pkg_check_modules(wayland-cursor REQUIRED wayland-cursor)
pkg_check_modules(dbus REQUIRED dbus-1)
+ if(WITH_GHOST_WAYLAND_LIBDECOR)
+ pkg_check_modules(libdecor REQUIRED libdecor-0>=0.1)
+ endif()
+
set(WITH_GL_EGL ON)
list(APPEND PLATFORM_LINKLIBS
@@ -624,6 +628,13 @@ if(WITH_GHOST_WAYLAND)
${wayland-cursor_LINK_LIBRARIES}
${dbus_LINK_LIBRARIES}
)
+
+ if(WITH_GHOST_WAYLAND_LIBDECOR)
+ list(APPEND PLATFORM_LINKLIBS
+ ${libdecor_LIBRARIES}
+ )
+ add_definitions(-DWITH_GHOST_WAYLAND_LIBDECOR)
+ endif()
endif()
if(WITH_GHOST_X11)