Skip to content

Commit

Permalink
meson: Fix deprecated source_root (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano authored Jul 28, 2024
1 parent 90e51cb commit a45a6ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion po/extra/meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 a45a6ba

Please sign in to comment.