]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Pass LD_LIBRARY_PATH as "env" where needed
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 7 Feb 2021 21:03:21 +0000 (22:03 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 28 Jan 2022 08:08:50 +0000 (09:08 +0100)
doc/meson.build
tests/meson.build
valadoc/tests/meson.build

index 40519581d7bb95524525193b6a3c16817aef1393..c5763e5186501b7a1f88f287af9c663ac49a1c56 100644 (file)
@@ -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,
                )
index ed3ed786f22116a3d9c984a1d24b9a5b5f70b43a..f12e9d25f1c20171ab88dd8550189d85a9e89430 100644 (file)
@@ -1380,6 +1380,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
index 6c6be7dd59edd61a2985d1e07940efb77925a6e4..7e534930752b8555efdaf657055c7654e6da94ad 100644 (file)
@@ -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