From e337ae074f05f7fac92c29ea3eb7477fbae39db8 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Thu, 19 Sep 2024 21:36:13 +0900 Subject: [PATCH] meson: Replace deprecated source_root with project_source_root --- data/meson.build | 4 ++-- po/extra/meson.build | 2 +- po/meson.build | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/meson.build b/data/meson.build index 41b5b6e..bf4bd17 100644 --- a/data/meson.build +++ b/data/meson.build @@ -19,7 +19,7 @@ install_data( i18n.merge_file( input: meson.project_name() + '.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') @@ -28,7 +28,7 @@ i18n.merge_file( i18n.merge_file( input: meson.project_name() + '.appdata.xml.in', output: meson.project_name() + '.appdata.xml', - po_dir: join_paths(meson.source_root(), 'po', 'extra'), + po_dir: join_paths(meson.project_source_root(), 'po', 'extra'), install: true, install_dir: join_paths(get_option('datadir'), 'metainfo') ) diff --git a/po/extra/meson.build b/po/extra/meson.build index 0586d24..a09826e 100644 --- a/po/extra/meson.build +++ b/po/extra/meson.build @@ -1,4 +1,4 @@ i18n.gettext('extra', - args: ['--directory='+meson.source_root(), '--from-code=UTF-8'], + args: ['--directory='+meson.project_source_root(), '--from-code=UTF-8'], install: false ) diff --git a/po/meson.build b/po/meson.build index 47c7b00..a7a85b5 100644 --- a/po/meson.build +++ b/po/meson.build @@ -1,5 +1,5 @@ i18n.gettext(meson.project_name(), - args: ['--directory='+meson.source_root(), '--from-code=UTF-8'] + args: ['--directory='+meson.project_source_root(), '--from-code=UTF-8'] ) subdir('extra')