Skip to content

Commit

Permalink
[Build] Fix deprecated format() in meson.build
Browse files Browse the repository at this point in the history
In Wayland builds
  • Loading branch information
lbonn committed Feb 28, 2024
1 parent ccb8385 commit 1d9819f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ theme_lexer = flex.process(theme_lexer_sources)
theme_parser = bison.process(theme_parser_sources)

if wayland_enabled
wayland_sys_protocols_dir = wayland_protocols.get_pkgconfig_variable('pkgdatadir')
fs = import('fs')
wayland_sys_protocols_dir = wayland_protocols.get_variable(pkgconfig: 'pkgdatadir')
wayland_scanner = find_program('wayland-scanner')
protocols = files(
wayland_sys_protocols_dir + '/stable/xdg-shell/xdg-shell.xml',
Expand All @@ -307,13 +308,13 @@ if wayland_enabled
proto_headers = []
foreach p : protocols
proto_srcs += custom_target(
'@0@'.format(p).underscorify() + '_protocol_c',
fs.stem(p).underscorify() + '_protocol_c',
input: p,
output: '@[email protected]',
command: [wayland_scanner, 'public-code', '@INPUT@', '@OUTPUT@'],
)
proto_headers += custom_target(
'@0@'.format(p).underscorify() + '_protocol_h',
fs.stem(p).underscorify() + '_protocol_h',
input: p,
output: '@[email protected]',
command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
Expand Down

0 comments on commit 1d9819f

Please sign in to comment.