mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-19 17:25:38 +02:00
bar/wayland: track XDG outputs, as this gets us the monitor identifiers
This commit is contained in:
parent
c226f9f0c8
commit
c6fd99f005
2 changed files with 77 additions and 10 deletions
|
@ -67,11 +67,25 @@ add_custom_command(
|
|||
VERBATIM
|
||||
MAIN_DEPENDENCY /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT xdg-output-unstable-v1-client.h
|
||||
COMMAND wayland-scanner client-header < /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml > xdg-output-unstable-v1-client.h
|
||||
VERBATIM
|
||||
MAIN_DEPENDENCY /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT xdg-output-unstable-v1.c
|
||||
COMMAND wayland-scanner private-code < /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml > xdg-output-unstable-v1.c
|
||||
VERBATIM
|
||||
MAIN_DEPENDENCY /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml
|
||||
)
|
||||
|
||||
add_library(wayland-protocols STATIC EXCLUDE_FROM_ALL
|
||||
wlr-layer-shell-unstable-v1-client.h
|
||||
wlr-layer-shell-unstable-v1.c
|
||||
xdg-shell.c
|
||||
xdg-output-unstable-v1-client.h
|
||||
xdg-output-unstable-v1.c
|
||||
)
|
||||
target_include_directories(wayland-protocols PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue