@@ -93,17 +93,23 @@ set(WLR_LAYER_SHELL_XML
|
||||
"${WLR_PROTOCOLS_DIR}/unstable/wlr-layer-shell-unstable-v1.xml"
|
||||
)
|
||||
|
||||
set(TEXT_INPUT_XML
|
||||
"${WAYLAND_PROTOCOLS_DIR}/unstable/text-input/text-input-unstable-v3.xml"
|
||||
)
|
||||
|
||||
set(GEN_C_HEADERS
|
||||
"${GEN_DIR}/xdg-shell-client-protocol.h"
|
||||
"${GEN_DIR}/wlr-layer-shell-unstable-v1-client-protocol.h"
|
||||
"${GEN_DIR}/ext-background-effect-v1-client-protocol.h"
|
||||
"${GEN_DIR}/blur-client-protocol.h"
|
||||
"${GEN_DIR}/text-input-unstable-v3-client-protocol.h"
|
||||
)
|
||||
set(GEN_C_PRIVATES
|
||||
"${GEN_DIR}/xdg-shell-protocol.c"
|
||||
"${GEN_DIR}/wlr-layer-shell-unstable-v1-protocol.c"
|
||||
"${GEN_DIR}/ext-background-effect-v1-protocol.c"
|
||||
"${GEN_DIR}/blur-protocol.c"
|
||||
"${GEN_DIR}/text-input-unstable-v3-protocol.c"
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
@@ -116,10 +122,13 @@ add_custom_command(
|
||||
# wlr-layer-shell
|
||||
COMMAND "${WAYLAND_SCANNER}" client-header "${WLR_LAYER_SHELL_XML}" "${GEN_DIR}/wlr-layer-shell-unstable-v1-client-protocol.h"
|
||||
COMMAND "${WAYLAND_SCANNER}" private-code "${WLR_LAYER_SHELL_XML}" "${GEN_DIR}/wlr-layer-shell-unstable-v1-protocol.c"
|
||||
# text-input-unstable-v3
|
||||
COMMAND "${WAYLAND_SCANNER}" client-header "${TEXT_INPUT_XML}" "${GEN_DIR}/text-input-unstable-v3-client-protocol.h"
|
||||
COMMAND "${WAYLAND_SCANNER}" private-code "${TEXT_INPUT_XML}" "${GEN_DIR}/text-input-unstable-v3-protocol.c"
|
||||
# org-kde-win-blur
|
||||
COMMAND "${WAYLAND_SCANNER}" client-header "${CMAKE_CURRENT_SOURCE_DIR}/blur.xml" "${GEN_DIR}/blur-client-protocol.h"
|
||||
COMMAND "${WAYLAND_SCANNER}" private-code "${CMAKE_CURRENT_SOURCE_DIR}/blur.xml" "${GEN_DIR}/blur-protocol.c"
|
||||
DEPENDS "${XDG_SHELL_XML}" "${WLR_LAYER_SHELL_XML}"
|
||||
DEPENDS "${XDG_SHELL_XML}" "${WLR_LAYER_SHELL_XML}" "${TEXT_INPUT_XML}"
|
||||
COMMENT "Generating Wayland + wlr-layer-shell client headers and private code"
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user