Skip to content

Commit

Permalink
Meson: fix deprecation warnings (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Aug 13, 2024
1 parent 73a1c67 commit ff184bc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
i18n.merge_file(
input: 'applications-menu.metainfo.xml.in',
output: 'io.elementary.wingpanel.applications-menu.metainfo.xml',
po_dir: meson.source_root() / 'po' / 'extra',
po_dir: meson.project_source_root() / 'po' / 'extra',
type: 'xml',
install: true,
install_dir: datadir / 'metainfo',
Expand Down
10 changes: 5 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ asresources = gnome.compile_resources(
)

prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
libdir = join_paths(prefix, get_option('libdir'))
datadir = prefix / get_option('datadir')
libdir = prefix / get_option('libdir')

add_project_arguments(
'-DPKGDATADIR="@0@"'.format(join_paths(get_option('prefix'), get_option('libdir'), 'wingpanel')),
'-DPKGDATADIR="@0@"'.format(libdir / 'wingpanel'),
language: 'c'
)

pluginsdir = join_paths(prefix, get_option('libdir'), 'io.elementary.wingpanel.applications-menu')
pluginsdir = libdir / 'io.elementary.wingpanel.applications-menu'
add_project_arguments(
'-DPLUGINSDIR="@0@"'.format(pluginsdir),
language: 'c'
Expand Down Expand Up @@ -61,7 +61,7 @@ if get_option('with-zeitgeist')
endif

config_data = configuration_data()
config_data.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
config_data.set_quoted('LOCALEDIR', prefix / get_option('localedir'))
config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_file = configure_file(
input: 'src/Config.vala.in',
Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
option('with-zeitgeist', type : 'boolean', value : 'true', description : 'Add Zeitgeist support')
option('with-zeitgeist', type : 'boolean', value : true, description : 'Add Zeitgeist support')
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(),
preset: 'glib',
install: false,
)
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'
)

Expand Down
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ dependencies = [
posix_dep,
]

wingpanel_indicatorsdir = wingpanel_dep.get_pkgconfig_variable('indicatorsdir', define_variable: ['libdir', libdir])
wingpanel_indicatorsdir = wingpanel_dep.get_variable('indicatorsdir', pkgconfig_define: ['libdir', libdir])

c_args = [
'-DHANDY_USE_UNSTABLE_API',
Expand Down
10 changes: 5 additions & 5 deletions src/test/meson.build
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
calculator_plugin_test = executable(
meson.project_name() + 'calculator-test',
'CalculatorPluginTest.vala',
meson.source_root() + '/src/synapse-plugins/calculator-plugin/calculator-plugin-backend.vala',
meson.project_source_root() + '/src/synapse-plugins/calculator-plugin/calculator-plugin-backend.vala',
dependencies: [
glib_dep,
gio_dep,
gio_unix_dep,
gio_unix_dep,
]
)
converter_plugin_test = executable(
meson.project_name() + 'converter-test',
'ConverterPluginTest.vala',
meson.source_root() + '/src/synapse-plugins/converter-plugin/converter-plugin-backend.vala',
meson.source_root() + '/src/synapse-plugins/converter-plugin/converter-data.vala',
meson.project_source_root() + '/src/synapse-plugins/converter-plugin/converter-plugin-backend.vala',
meson.project_source_root() + '/src/synapse-plugins/converter-plugin/converter-data.vala',
dependencies: [
glib_dep,
gio_dep,
gio_unix_dep,
gio_unix_dep,
]
)

Expand Down

0 comments on commit ff184bc

Please sign in to comment.