diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2022-03-28 10:21:58 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-03-28 21:41:58 +0000 |
commit | 423bb6455f0b7c47948000aeea42e4e4417700db (patch) | |
tree | 2c43da132bfcbdd3b31d079d5be8dea45f826420 | |
parent | f917661980384873f2a8f2cfdcf9e37605e3049b (diff) | |
download | libinput-423bb6455f0b7c47948000aeea42e4e4417700db.tar.gz |
meson: replace a meson.source_root() with the explicit directory
Removes the warning that source_root() has been deprecated since 0.56.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | doc/user/meson.build | 2 | ||||
-rw-r--r-- | meson.build | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/user/meson.build b/doc/user/meson.build index 8f690e85..a1e77311 100644 --- a/doc/user/meson.build +++ b/doc/user/meson.build @@ -194,7 +194,7 @@ if yq.found() foreach distro : distributions yq_filter = '.distributions[] | select(.name == "@0@") | .packages | join(" ")'.format(distro) deps = run_command(yq, '-r', yq_filter, - meson.source_root() / '.gitlab-ci' / 'config.yml', + dir_gitlab_ci / 'config.yml', check: true).stdout() dependencies_config.set('@0@_PACKAGES'.format(distro.to_upper()), deps) endforeach diff --git a/meson.build b/meson.build index 90f528e6..97649e57 100644 --- a/meson.build +++ b/meson.build @@ -16,6 +16,7 @@ dir_system_udev = get_option('prefix') / 'lib' / 'udev' dir_src_quirks = meson.current_source_dir() / 'quirks' dir_src_test = meson.current_source_dir() / 'test' dir_src = meson.current_source_dir() / 'src' +dir_gitlab_ci = meson.current_source_dir() / '.gitlab-ci' dir_udev = get_option('udev-dir') if dir_udev == '' |