diff options
author | Christian Rauch <Rauch.Christian@gmx.de> | 2020-04-30 06:46:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-30 07:21:50 +0300 |
commit | 66e70fe299e15124d9250a6a24e591cbb733713a (patch) | |
tree | 5be3fd39f5c489fcff259f8269ea30445e54052e /CMakeLists.txt | |
parent | 00e0034b13e6a8d88fbdb1a6b2b86d99a9b5a69b (diff) |
GHOST: initial Wayland support
Usable with the CMake option 'WITH_GHOST_WAYLAND'
The following functionality is working:
- Building with X11 and Wayland at the same time,
wayland is used when available.
- Keyboard, pointer handling.
- Cursor handling.
- Dedicated off-screen windows.
- Drag & drop.
- Copy & paste.
- Pointer grabbing.
See D6567 for further details.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f0ff3d1427..1201ddda333 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,6 +207,10 @@ mark_as_advanced(WITH_GHOST_DEBUG) option(WITH_GHOST_SDL "Enable building Blender against SDL for windowing rather than the native APIs" OFF) mark_as_advanced(WITH_GHOST_SDL) +if(UNIX AND NOT APPLE) + option(WITH_GHOST_WAYLAND "Enable building Blender against Wayland for windowing" OFF) +endif() + if(WITH_X11) option(WITH_GHOST_XDND "Enable drag'n'drop support on X11 using XDND protocol" ON) endif() |