Skip to content

Commit 9eb256e

Browse files
committed
Add minimum Meson version
1 parent ed02803 commit 9eb256e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

meson.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ project(
77
'cpp_std=c++20',
88
'warning_level=3'
99
],
10+
meson_version: '>= 0.62.0',
1011
)
1112

1213
prefix = get_option('prefix')
@@ -72,15 +73,15 @@ wlr_pointer_constraints_protocol = custom_target(
7273

7374
wlr_output_power_management_protocol = custom_target(
7475
'wlr_output_power_management_unstable_v1_protocol_h',
75-
input: join_paths(meson.source_root(), 'protocols', 'wlr-output-power-management-unstable-v1.xml'),
76+
input: join_paths(meson.project_source_root(), 'protocols', 'wlr-output-power-management-unstable-v1.xml'),
7677
output: 'wlr-output-power-management-unstable-v1-protocol.h',
7778
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
7879
build_by_default: false,
7980
)
8081

8182
wlr_layer_shell_protocol = custom_target(
8283
'wlr_layer_shell_unstable_v1_protocol_h',
83-
input: join_paths(meson.source_root(), 'protocols', 'wlr-layer-shell-unstable-v1.xml'),
84+
input: join_paths(meson.project_source_root(), 'protocols', 'wlr-layer-shell-unstable-v1.xml'),
8485
output: 'wlr-layer-shell-unstable-v1-protocol.h',
8586
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
8687
build_by_default: false,

0 commit comments

Comments
 (0)