meson: update for meson.build_root() and .build_source() deprecation
authorTim-Philipp Müller <tim@centricular.com>
Mon, 18 Oct 2021 14:47:00 +0000 (15:47 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 20 Oct 2021 11:20:44 +0000 (11:20 +0000)
-> use meson.project_build_root() or .global_build_root() instead.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1183>

23 files changed:
meson.build
subprojects/gst-devtools/validate/launcher/meson.build
subprojects/gst-devtools/validate/tests/check/meson.build
subprojects/gst-devtools/validate/tests/launcher_tests/meson.build
subprojects/gst-docs/meson.build
subprojects/gst-editing-services/tests/check/meson.build
subprojects/gst-examples/webrtc/check/meson.build
subprojects/gst-examples/webrtc/sendrecv/gst-sharp/meson.build
subprojects/gst-libav/tests/check/meson.build
subprojects/gst-omx/tests/check/meson.build
subprojects/gst-plugins-bad/tests/check/meson.build
subprojects/gst-plugins-bad/tests/validate/meson.build
subprojects/gst-plugins-base/tests/check/meson.build
subprojects/gst-plugins-base/tests/validate/meson.build
subprojects/gst-plugins-good/tests/check/meson.build
subprojects/gst-plugins-ugly/tests/check/meson.build
subprojects/gst-python/testsuite/meson.build
subprojects/gst-rtsp-server/tests/check/meson.build
subprojects/gstreamer-sharp/Tests/meson.build
subprojects/gstreamer-vaapi/tests/check/meson.build
subprojects/gstreamer/tests/check/meson.build
subprojects/gstreamer/tests/validate/meson.build
tests/python/meson.build

index af130e9..f7f373a 100644 (file)
@@ -384,9 +384,9 @@ endforeach
 message('Building subprojects: ' + ', '.join(subprojects_names))
 
 setenv = find_program('gst-env.py')
-devenv_cmd = [setenv, '--builddir=@0@'.format(meson.build_root()),
+devenv_cmd = [setenv, '--builddir=@0@'.format(meson.project_build_root()),
               '--gstbuilddir=@0@'.format(meson.current_build_dir()),
-              '--srcdir=@0@'.format(meson.source_root())]
+              '--srcdir=@0@'.format(meson.project_source_root())]
 
 subdir('tests')
 if meson.has_exe_wrapper() and build_machine.system() == 'linux' and host_machine.system() == 'windows'
index b767956..6038295 100644 (file)
@@ -2,8 +2,8 @@ _launcherdir = get_option('libdir') + '/gst-validate-launcher/python/launcher/'
 
 launcher_configure = configuration_data()
 launcher_configure.set('GST_VALIDATE_TESTSUITE_VERSION', '@0@'.format(TESTSUITE_VERSION))
-launcher_configure.set('BUILDDIR', meson.build_root())
-launcher_configure.set('SRCDIR', meson.source_root())
+launcher_configure.set('BUILDDIR', meson.global_build_root())
+launcher_configure.set('SRCDIR', meson.global_source_root())
 launcher_configure.set('DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
 launcher_configure.set('LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))
 
index c70c556..2960a43 100644 (file)
@@ -30,7 +30,7 @@ foreach t : validate_tests
     env = environment()
     env.set('GST_STATE_IGNORE_ELEMENTS', '')
     env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
     env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
 
index 9d5382e..f04884d 100644 (file)
@@ -4,11 +4,11 @@ if launcher.found()
     env = environment()
     env.set('GST_STATE_IGNORE_ELEMENTS', '')
     env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
     env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
 
-    test(test_name, launcher, args: ['-o', meson.build_root() + '/validate-launcher-output/',
+    test(test_name, launcher, args: ['-o', meson.project_build_root() + '/validate-launcher-output/',
       meson.current_source_dir() + '/test_validate.py', '--validate-tools-path',
       join_paths(meson.current_build_dir(), '..', '..', 'tools')],
       env: env)
index 045a4b1..821d3b9 100644 (file)
@@ -44,7 +44,7 @@ with open(fname, 'r') as f:
 
   # gst-build will generate this file for us to consume so that subproject
   # changes can still work
-  fname = join_paths(meson.build_root(), 'GstDocumentedSubprojects')
+  fname = join_paths(meson.project_build_root(), '..', '..', 'GstDocumentedSubprojects')
   cmdres = run_command(
       python3,
       '-c', read_file_contents,
index ec73254..34c1344 100644 (file)
@@ -63,7 +63,7 @@ foreach t : ges_tests
     env.set('GST_STATE_IGNORE_ELEMENTS', '')
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
 
     exe = executable(test_name, fname,
         'ges/test-utils.c', 'nle/common.c',
@@ -99,7 +99,7 @@ if gstvalidate_dep.found()
     env.set('GST_STATE_IGNORE_ELEMENTS', '')
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'scenarios'))
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GST_VALIDATE_LOGSDIR', meson.current_build_dir() / scenario)
     env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
 
@@ -129,7 +129,7 @@ if build_gir
     env.set('GST_STATE_IGNORE_ELEMENTS', '')
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'scenarios'))
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GI_TYPELIB_PATH', meson.current_build_dir() / '..' / '..' / 'ges')
 
     test('pythontests', runtests, args: ['--pyunittest-dir', meson.current_source_dir(), 'pyunittest', '--dump-on-failure'],
index 15fc8bc..c3b64ed 100644 (file)
@@ -15,8 +15,8 @@ if openssl.found() and have_webrtc_check_deps
       depends: test_deps,
       args : files(elem.get(1)),
       # XXX: This PYTHONPATH hack is fun
-      env : ['PYTHONPATH=' + join_paths(meson.source_root(), 'sendrecv', 'gst') + ':' + join_paths(meson.source_root(), 'signalling'),
-             'TEST_HTML_SOURCE=' + join_paths(meson.source_root(), 'sendrecv', 'js'),
-             'TEST_CA_CERT_PATH=' + join_paths(meson.build_root(), 'signalling')])
+      env : ['PYTHONPATH=' + join_paths(meson.project_source_root(), 'sendrecv', 'gst') + ':' + join_paths(meson.project_source_root(), 'signalling'),
+             'TEST_HTML_SOURCE=' + join_paths(meson.project_source_root(), 'sendrecv', 'js'),
+             'TEST_CA_CERT_PATH=' + join_paths(meson.project_build_root(), 'signalling')])
   endforeach
 endif
index 6cc171f..4e518df 100644 (file)
@@ -14,7 +14,7 @@ foreach dependency, version: { 'Newtonsoft.Json': '11.0.2', 'WebSocketSharp': '1
         '--nuget-version', version,
         '--csharp-version=net45',
         '--current-builddir', meson.current_build_dir(),
-        '--builddir', meson.build_root(),
+        '--builddir', meson.global_build_root(),  # FIXME: --builddir specified twice?!
     )
 
     if get_dep.returncode() != 0
@@ -33,4 +33,4 @@ dependencies += [dependency('gstreamer-sharp-1.0', fallback: ['gstreamer-sharp',
 
 message('Execute with MONO_PATH=@0@:$MONO_PATH @1@/WebRTCSendRecv.exe'.format(mono_path, meson.current_build_dir()))
 executable('WebRTCSendRecv', 'WebRTCSendRecv.cs',
-    cs_args: ['-unsafe'], dependencies: dependencies)
\ No newline at end of file
+    cs_args: ['-unsafe'], dependencies: dependencies)
index 4207055..2ba3714 100644 (file)
@@ -43,8 +43,8 @@ foreach t : libav_tests
     env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-plugins-base',
-      'gst-libav@' + meson.build_root())
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+      'gst-libav@' + meson.project_build_root())
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GSETTINGS_BACKEND', 'memory')
 
     env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
index 0871911..4bb7de6 100644 (file)
@@ -40,8 +40,8 @@ foreach t : omx_tests
     env.set('GST_STATE_IGNORE_ELEMENTS', state_ignore_elements)
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-plugins-base',
-      'gst-plugins-good', 'gst-omx@' + meson.build_root(), separator: ':')
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+      'gst-plugins-good', 'gst-omx@' + meson.project_build_root(), separator: ':')
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GSETTINGS_BACKEND', 'memory')
     env.set('GST_OMX_CONFIG_DIR', omx_config_dir)
 
index 58e6e25..7b6aeb6 100644 (file)
@@ -214,11 +214,11 @@ foreach t : base_tests
     env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_STATE_IGNORE_ELEMENTS', '')
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
     env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-plugins-base',
       'gst-plugins-good', 'gst-plugins-ugly','gst-libav', 'libnice',
-      'gst-plugins-bad@' + meson.build_root())
+      'gst-plugins-bad@' + meson.project_build_root())
     env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
     test(test_name, exe, env: env, timeout: 3 * 60)
   endif
index fd154e3..12f3d26 100644 (file)
@@ -8,12 +8,12 @@ tests = [
 ]
 
 env = environment()
-env.set('GST_PLUGIN_PATH_1_0', meson.build_root(), pluginsdirs)
+env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs)
 env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
 env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'validate'))
 env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
 env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-validate', 'gst-plugins-base',
-    'gst-plugins-bad@' + meson.build_root())
+    'gst-plugins-bad@' + meson.project_build_root())
 
 foreach t: tests
     test_dir_name = t.split('/')
index fa670b0..f135c1f 100644 (file)
@@ -161,13 +161,13 @@ foreach t : base_tests
     )
 
     env = environment()
-    env.set('GST_PLUGIN_PATH_1_0', meson.build_root(), pluginsdirs)
+    env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs)
     env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
     env.set('GST_STATE_IGNORE_ELEMENTS', 'cdio cdparanoiasrc libvisual_ alsasrc alsasink')
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_TAG_LICENSE_TRANSLATIONS_DICT', join_paths(gst_tag_dir, 'license-translations.dict'))
     env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer',
-        'gst-plugins-base@' + meson.build_root())
+        'gst-plugins-base@' + meson.project_build_root())
     env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
     env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
     test(test_name, exe, env: env, timeout: 3 * 60)
@@ -184,13 +184,13 @@ foreach group : [1, 2, 3, 4, 5, 6]
 
   # TODO Use env.copy when it is in meson
   env = environment()
-  env.set('GST_PLUGIN_PATH_1_0', meson.build_root(), pluginsdirs)
+  env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs)
   env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
   env.set('GST_STATE_IGNORE_ELEMENTS', 'cdio cdparanoiasrc libvisual_ alsasrc alsasink')
   env.set('CK_DEFAULT_TIMEOUT', '20')
   env.set('GST_TAG_LICENSE_TRANSLATIONS_DICT', join_paths(gst_tag_dir, 'license-translations.dict'))
   env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer',
-      'gst-plugins-base@' + meson.build_root())
+      'gst-plugins-base@' + meson.project_build_root())
   env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(vscale_test_name)))
   env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
 
index d1ecbaa..82d22a4 100644 (file)
@@ -23,12 +23,12 @@ tests = [
 ]
 
 env = environment()
-env.set('GST_PLUGIN_PATH_1_0', meson.build_root(), pluginsdirs)
+env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs)
 env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
 env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'validate'))
 env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
 env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-validate',
-    'gst-plugins-base@' + meson.build_root())
+    'gst-plugins-base@' + meson.project_build_root())
 
 foreach t: tests
     test_dir_name = t.split('/')
index 73db4d7..1920768 100644 (file)
@@ -210,8 +210,8 @@ foreach t : good_tests
     env.set('GST_STATE_IGNORE_ELEMENTS', state_ignore_elements)
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-plugins-base',
-      'timecode', 'gst-plugins-good@' + meson.build_root())
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+      'timecode', 'gst-plugins-good@' + meson.project_build_root())
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GSETTINGS_BACKEND', 'memory')
 
     env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
index c113037..0d59258 100644 (file)
@@ -72,8 +72,8 @@ foreach t : ugly_tests
     env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
     env.set('CK_DEFAULT_TIMEOUT', '20')
     env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-plugins-base',
-      'gst-plugins-good', 'gst-plugins-ugly@' + meson.build_root())
-    env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+      'gst-plugins-good', 'gst-plugins-ugly@' + meson.project_build_root())
+    env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
     env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
     env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
     test(test_name, exe, env: env, timeout: 3 * 60)
index 8b261f4..8ead4b7 100644 (file)
@@ -33,16 +33,16 @@ if gst_dep.type_name() == 'pkgconfig'
                  pbase.get_variable('pluginsdir')]
 endif
 
-pypluginsdir = [join_paths (meson.build_root(), 'plugin'), meson.current_source_dir()]
+pypluginsdir = [join_paths (meson.project_build_root(), 'plugin'), meson.current_source_dir()]
 
 foreach i: tests
     test_name = i.get(0)
     env = environment()
     env.set('GST_OVERRIDE_SRC_PATH', join_paths (meson.current_source_dir(), '..', 'gi', 'overrides'))
     env.set('GST_OVERRIDE_BUILD_PATH', join_paths (meson.current_build_dir(), '..', 'gi', 'overrides'))
-    env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer',
-        'gst-plugins-base@' + meson.build_root(), 'gst-python@' + meson.build_root())
-    env.set('GST_PLUGIN_PATH_1_0', meson.build_root(), pluginsdirs + pypluginsdir)
+    env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-plugins-base',
+        'gst-python@' + meson.project_build_root())
+    env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root(), pluginsdirs + pypluginsdir)
     env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
     test(test_name, python, args: [runtests, i.get(1)], env: env)
 endforeach
index 0cf78aa..229af32 100644 (file)
@@ -47,10 +47,10 @@ foreach test_name : rtsp_server_tests
   env = environment()
   env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
   env.set('GST_STATE_IGNORE_ELEMENTS', '')
-  env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer:gst-plugins-base:gst-plugins-good:gst-plugins-bad:gst-rtsp-server@' + meson.build_root())
+  env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer:gst-plugins-base:gst-plugins-good:gst-plugins-bad:gst-rtsp-server@' + meson.project_build_root())
   env.set('CK_DEFAULT_TIMEOUT', '120')
   env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
-  env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+  env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
   env.set('GST_PLUGIN_SCANNER_1_0', gst_plugin_scanner_path)
 
   exe = executable(test_name, fname,
index a7052bc..8e50ead 100644 (file)
@@ -12,7 +12,7 @@ if nunit_console.found()
         '--nuget-version', nunit_version,
         '--csharp-version=net45',
         '--current-builddir', meson.current_build_dir(),
-        '--builddir', meson.build_root(),
+        '--builddir', meson.build_root(), # FIXME: --builddir specified twice?!
     )
 
 
@@ -50,4 +50,4 @@ if nunit_console.found()
     endif
 else
     message('Could not find nunit-console, can\'t run unitests')
-endif
\ No newline at end of file
+endif
index d717437..31fe0d9 100644 (file)
@@ -28,7 +28,7 @@ foreach t : tests
   env = environment()
   env.set('CK_DEFAULT_TIMEOUT', '20')
   env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
-  env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
+  env.set('GST_PLUGIN_PATH_1_0', [meson.global_build_root()] + pluginsdirs)
   env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
   exe = executable(test_name, fname, extra_sources,
     include_directories : [configinc, libsinc],
index a617cf1..9c4228b 100644 (file)
@@ -154,7 +154,7 @@ foreach t : core_tests
     )
 
     env = environment()
-    env.set('GST_PLUGIN_PATH_1_0', meson.build_root())
+    env.set('GST_PLUGIN_PATH_1_0', meson.project_build_root())
     env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
     env.set('GST_STATE_IGNORE_ELEMENTS', '')
     env.set('CK_DEFAULT_TIMEOUT', '20')
index 4f1ab1e..fa137c1 100644 (file)
@@ -1,6 +1,6 @@
 gst_tester = executable('gst-tester-' + apiversion,
     'gst-tester.c',
-    c_args : gst_c_args + ['-DBUILDDIR=' + meson.build_root()],
+    c_args : gst_c_args,
     include_directories : [configinc],
     install: true,
     dependencies : [gio_dep],
@@ -13,7 +13,7 @@ tests = [
 ]
 
 env = environment()
-env.set('GST_PLUGIN_PATH_1_0', meson.build_root())
+env.set('GST_PLUGIN_PATH_1_0', meson.global_build_root())
 env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
 env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), 'validate'))
 env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner')
@@ -30,4 +30,4 @@ foreach t: tests
     test_file = join_paths(meson.current_source_dir(), t + '.validatetest')
     test(test_name, gst_tester, args: [test_file, '--use-fakesinks'],
         env: test_env, timeout : 3 * 60, protocol: 'tap')
-endforeach
\ No newline at end of file
+endforeach
index c41fd0b..aae7cf6 100644 (file)
@@ -13,9 +13,9 @@ if run_command(python, '-c', 'import gi').returncode() != 0
     subdir_done()
 endif
 
-test('python-overrides-devenv', setenv, args: ['--builddir=@0@'.format(meson.build_root()),
+test('python-overrides-devenv', setenv, args: ['--builddir=@0@'.format(meson.project_build_root()),
               '--gstbuilddir=@0@'.format(meson.current_build_dir() / '..' / '..'),
-              '--srcdir=@0@'.format(meson.source_root()),
+              '--srcdir=@0@'.format(meson.project_source_root()),
               meson.current_source_dir() / 'python-devenv-overrides.py'])
 
 env = environment()