Skip to content

Commit

Permalink
meson: Fix build warning (#768)
Browse files Browse the repository at this point in the history
Fix the following warning:

    WARNING: Deprecated features used:
     * 0.56.0: {'meson.source_root'}
  • Loading branch information
ryonakano authored Feb 12, 2024
1 parent f0efd85 commit 410f486
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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')
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion po/extra/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
i18n.gettext('extra',
args: '--directory='+meson.source_root(),
args: '--directory='+meson.project_source_root(),
install: false,
preset: 'glib'
)
2 changes: 1 addition & 1 deletion po/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
i18n.gettext(meson.project_name(),
args: '--directory=' + meson.source_root(),
args: '--directory=' + meson.project_source_root(),
preset: 'glib'
)
subdir('extra')

0 comments on commit 410f486

Please sign in to comment.