[Bf-blender-cvs] [f8d8b4e8cb3] wl_default5: debug wlp version find

Christian Rauch noreply at git.blender.org
Sat Jul 3 16:25:41 CEST 2021


Commit: f8d8b4e8cb31672134c319106157a6e00a15e257
Author: Christian Rauch
Date:   Sat Jul 3 14:21:14 2021 +0100
Branches: wl_default5
https://developer.blender.org/rBf8d8b4e8cb31672134c319106157a6e00a15e257

debug wlp version find

===================================================================

M	intern/ghost/CMakeLists.txt

===================================================================

diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt
index 09c82139290..98038ef837e 100644
--- a/intern/ghost/CMakeLists.txt
+++ b/intern/ghost/CMakeLists.txt
@@ -296,6 +296,21 @@ elseif(WITH_GHOST_X11 OR WITH_GHOST_WAYLAND)
     pkg_get_variable(WAYLAND_SCANNER wayland-scanner wayland_scanner)
 
     pkg_check_modules(wayland-protocols wayland-protocols>=1.15)
+    message("wlp found: " ${wayland-protocols_FOUND})
+    message("wlp version: " ${wayland-protocols_VERSION})
+    if (${wayland-protocols_FOUND})
+      if (${wayland-protocols_VERSION} VERSION_GREATER_EQUAL "1.15")
+        message("wlp version match")
+      else()
+        message("wlp version NOT match")
+      endif()
+    else()
+      message("wlp NOT found")
+    endif()
+
+    if (NOT DEFINED wayland-protocols_FOUND)
+      message("wlp mssing")
+    endif()
     if (${wayland-protocols_FOUND})
       pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir)
     else()
@@ -303,6 +318,7 @@ elseif(WITH_GHOST_X11 OR WITH_GHOST_WAYLAND)
         NAMES unstable/xdg-decoration/xdg-decoration-unstable-v1.xml
         PATH_SUFFIXES share/wayland-protocols
       )
+      message("wlp manual found: " ${WAYLAND_PROTOCOLS_DIR})
     endif()
 
     if (NOT DEFINED WAYLAND_PROTOCOLS_DIR)



More information about the Bf-blender-cvs mailing list