Skip to content

Commit

Permalink
Fix meson.build deprecations up to 0.56.0 (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalixte authored Oct 2, 2023
1 parent b28c5f4 commit 281551c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ custom_target('muffin.desktop',
msgfmt,
'--desktop', '--template',
'@INPUT@',
'-d', join_paths(meson.source_root(), 'po'),
'-d', join_paths(meson.project_source_root(), 'po'),
'-o', '@OUTPUT@'
],
install: true,
Expand Down
6 changes: 3 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('muffin', 'c',
version: '5.8.1',
meson_version: '>= 0.50.0',
meson_version: '>=0.56.0',
license: 'GPLv2+'
)

Expand Down Expand Up @@ -376,7 +376,7 @@ cdata.set('HAVE_STARTUP_NOTIFICATION', have_startup_notification)
cdata.set('HAVE_INTROSPECTION', have_introspection)
cdata.set('HAVE_PROFILER', have_profiler)

xkb_base = xkeyboard_config_dep.get_pkgconfig_variable('xkb_base')
xkb_base = xkeyboard_config_dep.get_variable(pkgconfig: 'xkb_base')
cdata.set_quoted('XKB_BASE', xkb_base)

if cc.has_header_symbol('sys/prctl.h', 'prctl')
Expand Down Expand Up @@ -483,7 +483,7 @@ output = [
' Clutter tests............ ' + have_clutter_tests.to_string(),
' Installed tests.......... ' + have_installed_tests.to_string(),
'',
' Now type \'ninja -C ' + meson.build_root() + '\' to build ' + meson.project_name(),
' Now type \'ninja -C ' + meson.project_build_root() + '\' to build ' + meson.project_name(),
'',
'',
]
Expand Down
6 changes: 3 additions & 3 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ if have_profiler
'backends/meta-profiler.h',
]

sysprof_dbus_interfaces_dir = join_paths(sysprof_dep.get_pkgconfig_variable('datadir'), 'dbus-1', 'interfaces')
sysprof_dbus_interfaces_dir = join_paths(sysprof_dep.get_variable(pkgconfig: 'datadir'), 'dbus-1', 'interfaces')
sysprof3_dbus_file = join_paths(sysprof_dbus_interfaces_dir, 'org.gnome.Sysprof3.Profiler.xml')

dbus_sysprof3_profiler_built_sources = gnome.gdbus_codegen('meta-dbus-sysprof3-profiler',
Expand Down Expand Up @@ -820,14 +820,14 @@ if have_wayland
['xwayland-keyboard-grab', 'unstable', 'v1', ],
]
if have_wayland_eglstream
wayland_eglstream_protocols_dir = wayland_eglstream_protocols_dep.get_pkgconfig_variable('pkgdatadir')
wayland_eglstream_protocols_dir = wayland_eglstream_protocols_dep.get_variable(pkgconfig: 'pkgdatadir')
wayland_protocols += [
['wayland-eglstream-controller', 'third-party', wayland_eglstream_protocols_dir],
]
endif

wayland_scanner = find_program('wayland-scanner')
protocols_dir = wayland_protocols_dep.get_pkgconfig_variable('pkgdatadir')
protocols_dir = wayland_protocols_dep.get_variable(pkgconfig: 'pkgdatadir')
assert(protocols_dir != '', 'Could not get pkgdatadir from wayland-protocols.pc')

foreach p: wayland_protocols
Expand Down
4 changes: 2 additions & 2 deletions src/tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ if have_installed_tests
endif

test_env = environment()
test_env.set('G_TEST_SRCDIR', join_paths(meson.source_root(), 'src'))
test_env.set('G_TEST_BUILDDIR', meson.build_root())
test_env.set('G_TEST_SRCDIR', join_paths(meson.project_source_root(), 'src'))
test_env.set('G_TEST_BUILDDIR', meson.project_build_root())
test_env.set('MUTTER_TEST_PLUGIN_PATH', '@0@'.format(default_plugin.full_path()))

test_client = executable('mutter-test-client',
Expand Down

0 comments on commit 281551c

Please sign in to comment.