Skip to content
Snippets Groups Projects
Commit f7b26a51 authored by Marco Trevisan's avatar Marco Trevisan Committed by Marco Trevisan
Browse files

build: Do not use deprecated meson object functions

parent 5f73ca1e
No related branches found
No related tags found
1 merge request!220build: Various meson cleanups
...@@ -27,7 +27,7 @@ polkit_policy = 'net.reactivated.fprint.device.policy' ...@@ -27,7 +27,7 @@ polkit_policy = 'net.reactivated.fprint.device.policy'
polkit_policy_target = i18n.merge_file( polkit_policy_target = i18n.merge_file(
input: '@0@.in'.format(polkit_policy), input: '@0@.in'.format(polkit_policy),
output: polkit_policy, output: polkit_policy,
po_dir: meson.source_root() / 'po', po_dir: meson.project_source_root() / 'po',
install: true, install: true,
install_dir: polkit_policy_directory, install_dir: polkit_policy_directory,
) )
......
...@@ -6,7 +6,7 @@ project('fprintd', 'c', ...@@ -6,7 +6,7 @@ project('fprintd', 'c',
'warning_level=3', 'warning_level=3',
'c_std=gnu99', 'c_std=gnu99',
], ],
meson_version: '>= 0.50.0') meson_version: '>= 0.56.0')
gnome = import('gnome') gnome = import('gnome')
i18n = import('i18n') i18n = import('i18n')
......
...@@ -31,8 +31,8 @@ foreach t: tests ...@@ -31,8 +31,8 @@ foreach t: tests
'env': [ 'env': [
'G_DEBUG=fatal-criticals', 'G_DEBUG=fatal-criticals',
'G_MESSAGES_DEBUG=all', 'G_MESSAGES_DEBUG=all',
'FPRINT_BUILD_DIR=' + meson.build_root() / 'src', 'FPRINT_BUILD_DIR=' + meson.project_build_root() / 'src',
'TOPSRCDIR=' + meson.source_root(), 'TOPSRCDIR=' + meson.project_source_root(),
], ],
'depends': [ 'depends': [
fprintd, fprintd,
...@@ -75,7 +75,7 @@ foreach pt: python_tests ...@@ -75,7 +75,7 @@ foreach pt: python_tests
args: ut_args, args: ut_args,
suite: ut_suite, suite: ut_suite,
depends: pt.get('depends', []), depends: pt.get('depends', []),
workdir: pt.get('workdir', meson.build_root()), workdir: pt.get('workdir', meson.project_build_root()),
env: pt.get('env', []), env: pt.get('env', []),
timeout: pt.get('timeout', 30), timeout: pt.get('timeout', 30),
is_parallel: pt.get('is_parallel', true), is_parallel: pt.get('is_parallel', true),
......
...@@ -49,8 +49,8 @@ foreach t: tests ...@@ -49,8 +49,8 @@ foreach t: tests
'file': files(meson.current_source_dir() / t + '.py')[0], 'file': files(meson.current_source_dir() / t + '.py')[0],
'is_parallel': false, 'is_parallel': false,
'env': [ 'env': [
'TOPBUILDDIR=' + meson.build_root(), 'TOPBUILDDIR=' + meson.project_build_root(),
'TOPSRCDIR=' + meson.source_root(), 'TOPSRCDIR=' + meson.project_source_root(),
'LD_PRELOAD=' + ' '.join(pam_tests_ld_preload), 'LD_PRELOAD=' + ' '.join(pam_tests_ld_preload),
'PAM_WRAPPER=1', 'PAM_WRAPPER=1',
'PAM_WRAPPER_DEBUGLEVEL=2', 'PAM_WRAPPER_DEBUGLEVEL=2',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment