summaryrefslogtreecommitdiff
path: root/src/compositor
diff options
context:
space:
mode:
authorInho Lee <inho.lee@qt.io>2022-11-03 13:12:45 +0100
committerInho Lee <inho.lee@qt.io>2022-11-07 17:48:08 +0100
commit9fe46c91092857bf5eb61998b6a7a8c483e08683 (patch)
tree3509367739cec3d38f2ca0e3c16eff26a9a5d310 /src/compositor
parent5c5a417abbc686595f746879463a0c4cb46b3cbb (diff)
downloadqtwayland-9fe46c91092857bf5eb61998b6a7a8c483e08683.tar.gz
Add dependencies of wayland protocols
Some macros are missing DEPENDS for add_custom_commands Fixes: QTBUG-108142 Change-Id: Ifacb2ea9bf3003c10dd407a8c77fc06b893b6a65 Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/compositor')
-rw-r--r--src/compositor/Qt6WaylandCompositorMacros.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/Qt6WaylandCompositorMacros.cmake b/src/compositor/Qt6WaylandCompositorMacros.cmake
index cce2073c..3221f815 100644
--- a/src/compositor/Qt6WaylandCompositorMacros.cmake
+++ b/src/compositor/Qt6WaylandCompositorMacros.cmake
@@ -34,10 +34,12 @@ function(qt6_generate_wayland_protocol_server_sources target)
OUTPUT "${waylandscanner_header_output}"
#TODO: Maybe put the files in ${CMAKE_CURRENT_BINARY_DIR/wayland_generated instead?
COMMAND Wayland::Scanner --strict --include-core-only server-header < "${protocol_file}" > "${waylandscanner_header_output}"
+ DEPENDS ${protocol_file} Wayland::Scanner
)
add_custom_command(
OUTPUT "${waylandscanner_code_output}"
COMMAND Wayland::Scanner --strict --include-core-only public-code < "${protocol_file}" > "${waylandscanner_code_output}"
+ DEPENDS ${protocol_file} Wayland::Scanner
)
set(wayland_include_dir "")
@@ -60,6 +62,7 @@ function(qt6_generate_wayland_protocol_server_sources target)
--build-macro=${build_macro}
--header-path='${wayland_include_dir}'
> "${qtwaylandscanner_header_output}"
+ DEPENDS ${protocol_file} Qt6::qtwaylandscanner
)
add_custom_command(
@@ -69,6 +72,7 @@ function(qt6_generate_wayland_protocol_server_sources target)
--build-macro=${build_macro}
--header-path='${wayland_include_dir}'
> "${qtwaylandscanner_code_output}"
+ DEPENDS ${protocol_file} Qt6::qtwaylandscanner
)
target_sources(${target} PRIVATE