aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-02-27 10:26:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-27 10:28:11 +0000
commit9b343fd9fb9dec30b6ccb01c23ab17e56a9c873a (patch)
tree38e43126d5f027d176b48be7c4c8b42b0693f160 /meson.build
parentMerge branch 'socket-activation' (diff)
meson: stop using deprecated functions, require meson >= 0.58
* get_pkgconfig_variable() -> get_variable() * prog.path() -> prog.full_path() * meson.build_root() -> meson.global_build_root()
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 5 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 8778927d..e2df6bdd 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project('foot', 'c',
version: '1.11.0',
license: 'MIT',
- meson_version: '>=0.54.0',
+ meson_version: '>=0.58.0',
default_options: [
'c_std=c11',
'warning_level=1',
@@ -48,7 +48,7 @@ endif
# 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
@@ -92,11 +92,11 @@ endif
tllist = dependency('tllist', version: '>=1.0.4', fallback: 'tllist')
fcft = dependency('fcft', version: ['>=3.0.1', '<4.0.0'], fallback: 'fcft')
-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 = []
@@ -251,7 +251,7 @@ if systemd.found()
configuration = configuration_data()
configuration.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
- systemd_units_dir = systemd.get_pkgconfig_variable('systemduserunitdir')
+ systemd_units_dir = systemd.get_variable('systemduserunitdir')
configure_file(
configuration: configuration,
input: 'foot-server@.service.in',