From 8a4095308e981bf4200b63618b8f06619b3ae681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 4 May 2023 13:55:11 +0200 Subject: build: Use / operator instead of format for Wayland protocol paths Part-of: --- src/meson.build | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/meson.build b/src/meson.build index 2cbbc0141..2a2767fba 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1055,15 +1055,11 @@ if have_wayland if protocol_type == 'stable' output_base = protocol_name - input = protocols_dir / '@0@/@1@/@2@.xml'.format(protocol_type, - protocol_name, - output_base) + input = protocols_dir / protocol_type / protocol_name / '@0@.xml'.format(output_base) elif protocol_type == 'staging' protocol_version = p.get(2) output_base = '@0@-@1@'.format(protocol_name, protocol_version) - input = protocols_dir / '@0@/@1@/@2@.xml'.format(protocol_type, - protocol_name, - output_base) + input = protocols_dir / protocol_type / protocol_name / '@0@.xml'.format(output_base) elif protocol_type == 'private' output_base = protocol_name input = 'wayland/protocol/@0@.xml'.format(protocol_name) @@ -1076,9 +1072,7 @@ if have_wayland output_base = '@0@-@1@-@2@'.format(protocol_name, protocol_type, protocol_version) - input = protocols_dir / '@0@/@1@/@2@.xml'.format(protocol_type, - protocol_name, - output_base) + input = protocols_dir / protocol_type / protocol_name / '@0@.xml'.format(output_base) endif server_header = custom_target('@0@ server header'.format(output_base), -- cgit v1.2.1