Skip to content

Commit 0c84381

Browse files
authored
Meson: bump version to 0.58 and fix deprecation warnings (#400)
1 parent 101bab5 commit 0c84381

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

data/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
i18n.merge_file(
22
input: 'system.metainfo.xml.in',
33
output: 'io.elementary.settings.system.metainfo.xml',
4-
po_dir: meson.source_root() / 'po' / 'extra',
4+
po_dir: meson.project_source_root() / 'po' / 'extra',
55
type: 'xml',
66
install: true,
77
install_dir: datadir / 'metainfo',

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
project(
22
'system',
33
'vala', 'c',
4-
version: '8.2.2'
4+
version: '8.2.2',
5+
meson_version: '>=0.58.0'
56
)
67

78
gettext_name = 'io.elementary.settings.' + meson.project_name()

po/extra/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
)

po/meson.build

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

src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plug_files = files(
1616
)
1717

1818
switchboard_dep = dependency('switchboard-3')
19-
switchboard_plugsdir = switchboard_dep.get_pkgconfig_variable('plugsdir', define_variable: ['libdir', libdir])
19+
switchboard_plugsdir = switchboard_dep.get_variable('plugsdir', pkgconfig_define: ['libdir', libdir])
2020

2121
config_data = configuration_data()
2222
config_data.set('GETTEXT_PACKAGE', gettext_name)

0 commit comments

Comments
 (0)