[vala/wip/meson: 46/47] Pass LD_LIBRARY_PATH as "env" where needed
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/meson: 46/47] Pass LD_LIBRARY_PATH as "env" where needed
- Date: Sat, 17 Jul 2021 17:35:16 +0000 (UTC)
commit 3c4672548ee31324c6f9420fcc5d84fb490e49d3
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Feb 7 22:03:21 2021 +0100
Pass LD_LIBRARY_PATH as "env" where needed
doc/meson.build | 3 +++
tests/meson.build | 1 +
valadoc/tests/meson.build | 6 ++++++
3 files changed, 10 insertions(+)
---
diff --git a/doc/meson.build b/doc/meson.build
index 40519581d..c5763e518 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -17,6 +17,7 @@ if help2man.found() and get_option('manpages')
'--include', join_paths(meson.current_source_dir(), 'valac.h2m'),
'--no-info', '--output=@OUTPUT@', valac_exe
],
+ env: 'LD_LIBRARY_PATH=' + join_paths(meson.build_root(), 'vala') + ':' +
join_paths(meson.build_root(), 'codegen'),
install: true,
install_dir: man_1_dir,
)
@@ -26,6 +27,7 @@ if help2man.found() and get_option('manpages')
'--include', join_paths(meson.current_source_dir(), 'vapigen.h2m'),
'--no-info', '--output=@OUTPUT@', vapigen_exe
],
+ env: 'LD_LIBRARY_PATH=' + join_paths(meson.build_root(), 'vala') + ':' +
join_paths(meson.build_root(), 'codegen'),
install: true,
install_dir: man_1_dir,
)
@@ -36,6 +38,7 @@ if help2man.found() and get_option('manpages')
'--include', join_paths(meson.current_source_dir(), 'valadoc.h2m'),
'--no-info', '--output=@OUTPUT@', valadoc_exe
],
+ env: 'LD_LIBRARY_PATH=' + join_paths(meson.build_root(), 'vala') + ':' +
join_paths(meson.build_root(), 'codegen') + ':' + join_paths(meson.build_root(), 'libvaladoc'),
install: true,
install_dir: man_1_dir,
)
diff --git a/tests/meson.build b/tests/meson.build
index c8784a9b0..82fe03bf5 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1257,6 +1257,7 @@ vala_flags = [
test_envars = [
'G_DEBUG=fatal-warnings',
+ 'LD_LIBRARY_PATH=' + join_paths(meson.build_root(), 'vala') + ':' + join_paths(meson.build_root(),
'codegen'),
]
foreach flag : supported_test_cflags
diff --git a/valadoc/tests/meson.build b/valadoc/tests/meson.build
index 6c6be7dd5..7e5349307 100644
--- a/valadoc/tests/meson.build
+++ b/valadoc/tests/meson.build
@@ -37,6 +37,11 @@ vala_flags = [
join_paths(meson.source_root(), 'valadoc', 'tests', 'libvaladoc', 'parser-generic-scanner.vala'),
]
+test_envars = [
+ 'G_DEBUG=fatal-warnings',
+ 'LD_LIBRARY_PATH=' + join_paths(meson.build_root(), 'vala') + ':' + join_paths(meson.build_root(),
'codegen') + ':' + join_paths(meson.build_root(), 'libvaladoc'),
+]
+
foreach flag : supported_test_cflags
vala_flags += ['-X', flag]
endforeach
@@ -46,6 +51,7 @@ foreach case : test_cases
valac_exe,
workdir: meson.current_build_dir(),
args: vala_flags + [join_paths(meson.current_source_dir(), case)],
+ env: test_envars,
depends: [valacore_lib, libvaladoc_lib]
)
endforeach
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]