From a45a6baeb05fa24f843aec07fb5230d86cc15841 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sun, 28 Jul 2024 12:58:44 +0900 Subject: [PATCH] meson: Fix deprecated source_root (#276) --- 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 580a2dfb1f..69299c855e 100644 --- a/data/meson.build +++ b/data/meson.build @@ -23,14 +23,14 @@ i18n.merge_file( output : meson.project_name() + '.desktop', install : true, install_dir : join_paths(get_option('datadir'), 'applications'), - po_dir : join_paths(meson.source_root(), 'po', 'extra'), + po_dir : join_paths(meson.project_source_root(), 'po', 'extra'), type : 'desktop' ) i18n.merge_file( input: 'camera.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 5e2ca46679..f22dad7b03 100644 --- a/po/extra/meson.build +++ b/po/extra/meson.build @@ -1,6 +1,6 @@ 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 2c668b3055..485c96203d 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')