Skip to content

Commit 79fa6d5

Browse files
ryonakanotintou
authored andcommitted
meson: Replace deprecated source_root with project_source_root
1 parent 49831d4 commit 79fa6d5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

platform-data/data/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
i18n.merge_file(
22
input: 'platform.appdata.xml.in',
33
output: 'io.elementary.Platform.appdata.xml',
4-
po_dir: join_paths(meson.source_root(), 'po'),
4+
po_dir: join_paths(meson.project_source_root(), 'po'),
55
type: 'xml',
66
install: true,
77
install_dir: join_paths(get_option('datadir'), 'metainfo'),
@@ -10,7 +10,7 @@ i18n.merge_file(
1010
i18n.merge_file(
1111
input: 'sdk.appdata.xml.in',
1212
output: 'io.elementary.Sdk.appdata.xml',
13-
po_dir: join_paths(meson.source_root(), 'po'),
13+
po_dir: join_paths(meson.project_source_root(), 'po'),
1414
type: 'xml',
1515
install: true,
1616
install_dir: join_paths(get_option('datadir'), 'metainfo'),

platform-data/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
project(
2-
'io.elementary.Platform.Data'
2+
'io.elementary.Platform.Data',
3+
meson_version: '>= 0.56.0'
34
)
45

56
i18n = import('i18n')

platform-data/po/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
i18n.gettext('extra',
2-
args: '--directory=' + meson.source_root(),
2+
args: '--directory=' + meson.project_source_root(),
33
preset: 'glib',
44
install: false
55
)

0 commit comments

Comments
 (0)