diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-12-08 18:20:47 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-12-08 18:27:51 +0100 |
| commit | 8454135d0c8918ed16441bbc08ef176cd2e02c5e (patch) | |
| tree | 20839531af30da8d3bade1a25925887c7180c4ef /src/CMakeLists.txt | |
| parent | 1f6fda64a8195681e385acef2ec5fba740d85489 (diff) | |
Wayland: add support of the "XDG dialog windows" protocol
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 62e731337..8f05995d7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -821,6 +821,19 @@ if(UNIX AND FLTK_USE_WAYLAND) list(APPEND STATIC_FILES "text-input-protocol.c") list(APPEND SHARED_FILES "text-input-protocol.c") + if(HAVE_XDG_DIALOG) + set(INFILE ${PROTOCOLS}/staging/xdg-dialog/xdg-dialog-v1.xml) + add_custom_command( + OUTPUT xdg-dialog-protocol.c xdg-dialog-client-protocol.h + COMMAND wayland-scanner private-code ${INFILE} xdg-dialog-protocol.c + COMMAND wayland-scanner client-header ${INFILE} xdg-dialog-client-protocol.h + DEPENDS ${INFILE} + VERBATIM + ) + list(APPEND STATIC_FILES "xdg-dialog-protocol.c") + list(APPEND SHARED_FILES "xdg-dialog-protocol.c") + endif() + if(STOP_REQUIRED) message(FATAL_ERROR "*** Terminating: one or more required file(s) were not found. ***") endif() |
