Skip to content

Commit

Permalink
Fix meson.build deprecations up to 0.56.0 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalixte authored Oct 2, 2023
1 parent 0ab6db8 commit 5df5051
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ subdir('xml')
gnome.gtkdoc('libxapp',
install: true,
src_dir: [
join_paths(meson.source_root(), 'libxapp'),
join_paths(meson.build_root(), 'libxapp'),
join_paths(meson.project_source_root(), 'libxapp'),
join_paths(meson.project_build_root(), 'libxapp'),
],
dependencies: libxapp_dep,
gobject_typesfile: 'libxapp.types',
Expand Down
2 changes: 1 addition & 1 deletion libxapp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,6 @@ if not app_lib_only
include_directories: [top_inc],
dependencies: [gtk3_dep, libxapp_dep],
install: true,
install_dir: join_paths(gtk3_dep.get_pkgconfig_variable('libdir'),'gtk-3.0','modules')
install_dir: join_paths(gtk3_dep.get_variable(pkgconfig: 'libdir'),'gtk-3.0','modules')
)
endif
5 changes: 3 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ project('xapp',
'c',
version : '2.6.1',
default_options : [ 'buildtype=debugoptimized' ],
meson_version : '>=0.56.0'
)

gnome = import('gnome')
pkg = import('pkgconfig')
i18n = import('i18n')

dbus_services_dir = dependency('dbus-1').get_pkgconfig_variable('session_bus_services_dir',
define_variable: ['datadir', get_option('datadir')])
dbus_services_dir = dependency('dbus-1').get_variable(pkgconfig: 'session_bus_services_dir',
pkgconfig_define: ['datadir', get_option('datadir')])
sn_watcher_dir = join_paths(get_option('prefix'), get_option('libdir'), 'xapps')

cdata = configuration_data()
Expand Down
2 changes: 1 addition & 1 deletion status-applets/mate/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ i18n.merge_file(
input: def_file,
output: 'org.x.MateXAppStatusApplet.mate-panel-applet',
type: 'desktop',
po_dir: join_paths(meson.source_root(), 'po'),
po_dir: join_paths(meson.project_source_root(), 'po'),
install: true,
install_dir: join_paths(get_option('datadir'), 'mate-panel', 'applets')
)

0 comments on commit 5df5051

Please sign in to comment.