tdlight-java-natives/scripts/continuous-integration/docker/setup-platform-variables.sh

11 lines
315 B
Bash
Raw Normal View History

#!/bin/bash -e
2023-04-27 19:17:42 +02:00
if [[ -n ${GH_CROSSBUILD} ]]; then
export CROSS_BUILD_DEPS_DIR=""
fi
source ./scripts/continuous-integration/github-workflows/setup-variables.sh
export JAVA_HOME
JAVA_HOME="$(find "/usr/lib/jvm/" -maxdepth 1 -type d -iname "java*jdk*" | head -n 1)/"
export JAVA_INCLUDE_PATH="$JAVA_HOME/include"