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>
This commit is contained in:
parent
9c5b09ee8d
commit
8826dbb613
@ -38,11 +38,13 @@ function(qt6_generate_wayland_protocol_client_sources target)
|
||||
OUTPUT "${waylandscanner_header_output}"
|
||||
#TODO: Maybe put the files in ${CMAKE_CURRENT_BINARY_DIR/wayland_generated instead?
|
||||
COMMAND Wayland::Scanner --strict ${waylandscanner_extra_args} client-header < "${protocol_file}" > "${waylandscanner_header_output}"
|
||||
DEPENDS ${protocol_file} Wayland::Scanner
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${waylandscanner_code_output}"
|
||||
COMMAND Wayland::Scanner --strict ${waylandscanner_extra_args} public-code < "${protocol_file}" > "${waylandscanner_code_output}"
|
||||
DEPENDS ${protocol_file} Wayland::Scanner
|
||||
)
|
||||
|
||||
set(wayland_include_dir "")
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user