diff options
author | Campbell Barton <campbell@blender.org> | 2022-07-05 07:49:36 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-07-06 08:30:47 +0300 |
commit | e58e023e1a3e10f4ff2557aedcd730b5dba23579 (patch) | |
tree | 6f4383d011e359b13add3dd7917a7e69b4231c0e /intern/ghost/CMakeLists.txt | |
parent | d9505831a4549e872bcef023ac082d002e8d8392 (diff) |
GHOST/Wayland: support dynamic loading libraries for Wayland
Add intern/wayland_dynload which is used when WITH_GHOST_WAYLAND_DYNLOAD
is enabled (off by default). When enabled, systems without Wayland
installed will fall back to X11.
This allows Blender to dynamically load:
- libwayland-client
- libwayland-cursor
- libwayland-egl
- libdecor-0 (when WITH_GHOST_WAYLAND_LIBDECOR is enabled).
Diffstat (limited to 'intern/ghost/CMakeLists.txt')
-rw-r--r-- | intern/ghost/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt index 6a11d00cbc4..0203c5ecf5d 100644 --- a/intern/ghost/CMakeLists.txt +++ b/intern/ghost/CMakeLists.txt @@ -270,6 +270,16 @@ elseif(WITH_GHOST_X11 OR WITH_GHOST_WAYLAND) ${wayland-cursor_INCLUDE_DIRS} ) + if(WITH_GHOST_WAYLAND_DYNLOAD) + list(APPEND INC_SYS + ../../intern/wayland_dynload/extern + ) + list(APPEND LIB + bf_intern_wayland_dynload + ) + add_definitions(-DWITH_GHOST_WAYLAND_DYNLOAD) + endif() + if(WITH_GHOST_WAYLAND_DBUS) list(APPEND INC_SYS ${dbus_INCLUDE_DIRS} |