aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-02-27 11:33:44 +0100
committerDaniel Eklöf <daniel@ekloef.se>2022-02-27 11:33:44 +0100
commit44475f88115457ded3436a2f32cd72ae1af3efd0 (patch)
tree701d58658cf57cfb6a95fcc503b6c268b94880ca
parent643ec33809fccd0a378190799cafcdf8521e3864 (diff)
downloadwbg-44475f88115457ded3436a2f32cd72ae1af3efd0.tar.gz
meson: stop using deprecated functions, require meson >= 0.58
* get_pkgconfig_variable() -> get_variable() * meson.build_root() -> meson.global_build_root()
-rw-r--r--meson.build8
1 files changed, 4 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index f14e86e..47c6155 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project('wbg', 'c',
version: '1.0.1',
license: 'MIT',
- meson_version: '>=0.53.0',
+ meson_version: '>=0.58.0',
default_options: [
'c_std=c18',
'warning_level=1',
@@ -20,7 +20,7 @@ cc = meson.get_compiler('c')
# Compute the relative path used by compiler invocations.
source_root = meson.current_source_dir().split('/')
-build_root = meson.build_root().split('/')
+build_root = meson.global_build_root().split('/')
relative_dir_parts = []
i = 0
in_prefix = true
@@ -65,11 +65,11 @@ wayland_protocols = dependency('wayland-protocols')
wayland_client = dependency('wayland-client')
tllist = dependency('tllist', version: '>=1.0.1', fallback: 'tllist')
-wayland_protocols_datadir = wayland_protocols.get_pkgconfig_variable('pkgdatadir')
+wayland_protocols_datadir = wayland_protocols.get_variable('pkgdatadir')
wscanner = dependency('wayland-scanner', native: true)
wscanner_prog = find_program(
- wscanner.get_pkgconfig_variable('wayland_scanner'), native: true)
+ wscanner.get_variable('wayland_scanner'), native: true)
wl_proto_headers = []
wl_proto_src = []