From 410f48653611ef47c130ffd260ffea1ccccabcf6 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Mon, 12 Feb 2024 21:47:46 +0900 Subject: [PATCH] meson: Fix build warning (#768) Fix the following warning: WARNING: Deprecated features used: * 0.56.0: {'meson.source_root'} --- data/meson.build | 6 +++--- po/extra/meson.build | 2 +- po/meson.build | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/meson.build b/data/meson.build index 0a066f932..9f74aca3f 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,7 +1,7 @@ gresource = gnome.compile_resources( 'music-resources', 'music.gresource.xml', - source_dir: join_paths(meson.source_root(), 'data') + source_dir: join_paths(meson.project_source_root(), 'data') ) install_data( @@ -13,7 +13,7 @@ install_data( i18n.merge_file( input: 'music.desktop.in', output: meson.project_name() + '.desktop', - po_dir: join_paths(meson.source_root(), 'po', 'extra'), + po_dir: join_paths(meson.project_source_root(), 'po', 'extra'), type: 'desktop', install: true, install_dir: join_paths(get_option('datadir'), 'applications') @@ -22,7 +22,7 @@ i18n.merge_file( i18n.merge_file( input: 'music.metainfo.xml.in', output: meson.project_name() + '.metainfo.xml', - po_dir: meson.source_root() / 'po' / 'extra', + po_dir: meson.project_source_root() / 'po' / 'extra', type: 'xml', install: true, install_dir: get_option('datadir') / 'metainfo', diff --git a/po/extra/meson.build b/po/extra/meson.build index 8933523da..30590b60b 100644 --- a/po/extra/meson.build +++ b/po/extra/meson.build @@ -1,5 +1,5 @@ i18n.gettext('extra', - args: '--directory='+meson.source_root(), + args: '--directory='+meson.project_source_root(), install: false, preset: 'glib' ) diff --git a/po/meson.build b/po/meson.build index b370f7945..023d52da5 100644 --- a/po/meson.build +++ b/po/meson.build @@ -1,5 +1,5 @@ i18n.gettext(meson.project_name(), - args: '--directory=' + meson.source_root(), + args: '--directory=' + meson.project_source_root(), preset: 'glib' ) subdir('extra')