Client: Rebuild generated files when source or QtWaylandScanner changes

Right now if one changes QtWaylandScanner you need to do a clean build
to see the changes.

Change-Id: I3fc9f37a25550880328363b07b1bb5713c8df2e6
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
David Edmundson 2021-02-09 22:03:22 +00:00
parent d92e26205e
commit 37f04028ca

View File

@ -44,6 +44,7 @@ function(qt6_generate_wayland_protocol_client_sources target)
add_custom_command(
OUTPUT "${qtwaylandscanner_header_output}"
COMMAND Qt6::qtwaylandscanner client-header "${protocol_file}" "${wayland_include_dir}" > "${qtwaylandscanner_header_output}"
DEPENDS ${protocol_file} Qt6::qtwaylandscanner
)
# TODO: We need this hack in order to get the xcomposite plugins to build...
@ -61,6 +62,7 @@ function(qt6_generate_wayland_protocol_client_sources target)
add_custom_command(
OUTPUT "${qtwaylandscanner_code_output}"
COMMAND Qt6::qtwaylandscanner client-code "${protocol_file}" --header-path='${wayland_include_dir}' --add-include='${qtwaylandscanner_code_include}' > "${qtwaylandscanner_code_output}"
DEPENDS ${protocol_file} Qt6::qtwaylandscanner
)
target_sources(${target} PRIVATE