Skip to content

Commit b4e7c29

Browse files
authored
meson: Fix warnings (#272)
1 parent cf08fb7 commit b4e7c29

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You'll need the following dependencies:
1212
* libflatpak-dev
1313
* libgranite-7-dev >= 7.4.0
1414
* libgtk-4-dev
15-
* meson
15+
* meson >= 0.58.0
1616
* valac
1717

1818
Run `meson` to configure the build environment and then `ninja` to build

data/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gresource = gnome.compile_resources(
77
i18n.merge_file(
88
input: 'applications.metainfo.xml.in',
99
output: 'io.elementary.settings.applications.metainfo.xml',
10-
po_dir: join_paths(meson.source_root (), 'po', 'extra'),
10+
po_dir: join_paths(meson.project_source_root (), 'po', 'extra'),
1111
install_dir: join_paths(datadir, 'metainfo'),
1212
install: true
1313
)

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
project(
22
'applications',
33
'vala', 'c',
4-
version: '8.2.0'
4+
version: '8.2.0',
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
subdir('extra')

src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plug_files = files(
2424
)
2525

2626
switchboard_dep = dependency('switchboard-3')
27-
switchboard_plugsdir = switchboard_dep.get_pkgconfig_variable('plugsdir', define_variable: ['libdir', libdir])
27+
switchboard_plugsdir = switchboard_dep.get_variable('plugsdir', pkgconfig_define: ['libdir', libdir])
2828

2929
shared_module(
3030
meson.project_name(),

0 commit comments

Comments
 (0)