Stop using deprecated wayland-scanner argument

The argument "code" is deprecated. Use "public-code" instead.

Task-number: QTBUG-73099
Change-Id: Idc8dca127581e07b81d7174ece3312c27b6ba9db
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
Paul Olav Tvete 2020-07-07 15:07:24 +02:00
parent 7eea720dbd
commit 0815723d6d
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function(qt6_generate_wayland_protocol_client_sources target)
add_custom_command(
OUTPUT "${waylandscanner_code_output}"
COMMAND Wayland::Scanner --include-core-only code < "${protocol_file}" > "${waylandscanner_code_output}"
COMMAND Wayland::Scanner --include-core-only public-code < "${protocol_file}" > "${waylandscanner_code_output}"
)
# TODO: Make this less hacky

View File

@ -17,7 +17,7 @@ function(qt6_generate_wayland_protocol_server_sources target)
)
add_custom_command(
OUTPUT "${waylandscanner_code_output}"
COMMAND Wayland::Scanner --include-core-only code < "${protocol_file}" > "${waylandscanner_code_output}"
COMMAND Wayland::Scanner --include-core-only public-code < "${protocol_file}" > "${waylandscanner_code_output}"
)
# TODO: make this less hacky