mirror of
https://github.com/nasa/fpp.git
synced 2025-12-11 11:16:42 -06:00
21 lines
645 B
Bash
Executable File
21 lines
645 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# ----------------------------------------------------------------------
|
|
# Install FPP tools configured to run the GraalVM tracing agent
|
|
# See https://www.graalvm.org/22.1/reference-manual/native-image/Agent/
|
|
# ----------------------------------------------------------------------
|
|
|
|
if test -z "$FPP_GRAALVM_JAVA_HOME"
|
|
then
|
|
echo "trace: environment variable FPP_GRAALVM_JAVA_HOME is not set" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
dir="`pwd`"
|
|
merge_dir="$dir/lib/src/main/resources/META-INF/native-image"
|
|
|
|
export FPP_JAVA_HOME=$FPP_GRAALVM_JAVA_HOME
|
|
export FPP_JAVA_FLAGS="-agentlib:native-image-agent=config-merge-dir=$merge_dir"
|
|
|
|
$dir/install "$@"
|