external-project: Test env kwarg

This commit is contained in:
Paolo Bonzini authored and Paolo Bonzini committed 2026-09-23 21:36:43 +02:00
1 parent e6c4e8d040
commit 245448ad8f
2 files changed
+8

No files matched your search

@@ -1,5 +1,7 @@
#! /bin/sh
set -e
srcdir=$(dirname "$0")
# some configure scripts seem to iterate over srcdir and other paths
@@ -60,3 +62,8 @@ install: libfoo.$LIBEXT
cp \$< "\$(DESTDIR)$LIBDIR";
cp "$srcdir/libfoo.h" "\$(DESTDIR)$INCDIR";
EOL
if [ "$FOO" != "BAR" ]; then
echo "Env FOO is not set"
exit 1
fi
@@ -18,6 +18,7 @@ p = mod.add_project('configure',
],
depends: somelib,
verbose: true,
env: ['FOO=BAR'],
)
libfoo_dep = declare_dependency(link_with : somelib,