summaryrefslogtreecommitdiff
path: root/tests/repository
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-05-06 14:24:34 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-05-06 14:24:34 -0400
commitf8e080d03bb490e3539a2a7e0c4a5e7a20fcd863 (patch)
treef1eec668d91f881e047869352350db7b9c6ea5f6 /tests/repository
parent769f886bfa3c7b21815def592eec7279bb123f23 (diff)
downloadgobject-introspection-f8e080d03bb490e3539a2a7e0c4a5e7a20fcd863.tar.gz
Meson: Fix build as subproject
meson.build_root() is the root of the main project, better use meson.current_build_dir() instead.
Diffstat (limited to 'tests/repository')
-rw-r--r--tests/repository/meson.build10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/repository/meson.build b/tests/repository/meson.build
index 497ab106..17445381 100644
--- a/tests/repository/meson.build
+++ b/tests/repository/meson.build
@@ -10,17 +10,17 @@ if glib_dep.type_name() == 'pkgconfig'
repository_test_env = environment()
repository_test_env.prepend(
'GI_TYPELIB_PATH',
- join_paths(meson.build_root(), 'gir'),
- join_paths(meson.build_root(), 'tests'),
- join_paths(meson.build_root(), 'tests', 'scanner'),
+ join_paths(build_root, 'gir'),
+ join_paths(build_root, 'tests'),
+ join_paths(build_root, 'tests', 'scanner'),
)
repository_test_env.prepend(
'LD_LIBRARY_PATH',
- join_paths(meson.build_root(), 'tests', 'scanner'),
+ join_paths(build_root, 'tests', 'scanner'),
)
if host_system == 'windows'
repository_test_env.prepend(
- 'PATH', join_paths(meson.build_root(), 'tests', 'scanner'))
+ 'PATH', join_paths(build_root, 'tests', 'scanner'))
endif
custom_c_args = cc.get_supported_arguments([