mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
build: Replace deprecated meson functions
Replace deprecated functions with their direct replacements: - dep.get_pkgconfig_variable() → dep.get_variable() - prg.path() → prg.full_path() - source/build_root() → project_source/build_root() In one case we need meson.global_source_root() that was only added in meson 0.58, so bump the requirement to that. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2077>
This commit is contained in:
parent
0d3894c471
commit
daf729de11
11 changed files with 21 additions and 21 deletions
|
|
@ -1,6 +1,6 @@
|
|||
project('gnome-extensions-tool', 'c',
|
||||
version: '41.0',
|
||||
meson_version: '>= 0.53.0',
|
||||
meson_version: '>= 0.58.0',
|
||||
license: 'GPLv2+'
|
||||
)
|
||||
|
||||
|
|
@ -36,13 +36,13 @@ cc = meson.get_compiler('c')
|
|||
|
||||
bash_completion = dependency('bash-completion', required: get_option('bash_completion'))
|
||||
|
||||
po_dir = meson.source_root() + '/po'
|
||||
po_dir = meson.global_source_root() + '/po'
|
||||
|
||||
subdir('src')
|
||||
|
||||
if bash_completion.found()
|
||||
install_data('completion/bash/gnome-extensions',
|
||||
install_dir: bash_completion.get_pkgconfig_variable('completionsdir', define_variable: ['datadir', datadir])
|
||||
install_dir: bash_completion.get_variable('completionsdir', pkgconfig_define: ['datadir', datadir])
|
||||
)
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue