2020-10-03 14:06:54 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# ====== Variables
|
2020-10-06 22:25:44 +02:00
|
|
|
export TD_SRC_DIR=$TRAVIS_BUILD_DIR/tdlight-java/dependencies/tdlight
|
|
|
|
export TD_BIN_DIR=$TRAVIS_BUILD_DIR/tdlight-java/bin-td
|
|
|
|
export TDNATIVES_BIN_DIR=$TRAVIS_BUILD_DIR/tdlight-java/bin-tdlight
|
2020-10-06 22:43:13 +02:00
|
|
|
export TDNATIVES_CPP_SRC_DIR=$TRAVIS_BUILD_DIR/tdlight-java/src/tdlib-cpp
|
2020-10-06 22:25:44 +02:00
|
|
|
export TDNATIVES_DOCS_BIN_DIR=$TRAVIS_BUILD_DIR/tdlight-java/bin-docs
|
|
|
|
export TD_BUILD_DIR=$TRAVIS_BUILD_DIR/tdlight-java/build-td
|
|
|
|
export TD_CROSS_BIN_DIR=$TD_SRC_DIR/bin-td-cross
|
|
|
|
export TDNATIVES_CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/tdlight-java/build-tdlight
|
|
|
|
export JAVA_SRC_DIR=$TRAVIS_BUILD_DIR/tdlight-java/src/tdlib-java
|
|
|
|
export TDLIB_SERIALIZER_DIR=$TRAVIS_BUILD_DIR/tdlight-java/dependencies/tdlib-serializer
|
2020-10-03 14:06:54 +02:00
|
|
|
export MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/javax.crypto=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"
|
2020-10-05 00:19:18 +02:00
|
|
|
TRAVIS_CPU_ARCH_STANDARD="$(tr '[:upper:]' '[:lower:]'<<<"${TRAVIS_CPU_ARCH}")"
|
|
|
|
export TRAVIS_CPU_ARCH_STANDARD;
|
|
|
|
export TRAVIS_CPU_CORES="2"
|
2020-10-03 14:06:54 +02:00
|
|
|
TRAVIS_OS_NAME_STANDARD="$(tr '[:upper:]' '[:lower:]'<<<"${TRAVIS_OS_NAME}")"
|
|
|
|
export TRAVIS_OS_NAME_STANDARD
|
2020-10-05 00:19:18 +02:00
|
|
|
export TRAVIS_OS_NAME_SHORT=$TRAVIS_OS_NAME_STANDARD
|
|
|
|
export SRC_TDJNI_LIBNAME="libtdjni.so"
|
|
|
|
export DEST_TDJNI_LIBNAME="tdjni.so"
|
2020-10-03 14:06:54 +02:00
|
|
|
|
|
|
|
# ====== OS Variables
|
2020-10-05 00:19:18 +02:00
|
|
|
TRAVIS_CPU_ARCH_JAVA="$(tr '[:upper:]' '[:lower:]'<<<"${TRAVIS_CPU_ARCH}")"
|
|
|
|
export TRAVIS_CPU_ARCH_JAVA
|
2020-10-04 14:15:02 +02:00
|
|
|
export TDLIB_RESOURCES_OUTPUT_DIR="$TRAVIS_OUTPUT_DIR/resources/libs/$TRAVIS_OS_NAME_SHORT/$TRAVIS_CPU_ARCH_STANDARD"
|
2020-10-03 14:06:54 +02:00
|
|
|
|
|
|
|
# ====== Print variables
|
|
|
|
echo "TD_SRC_DIR=${TD_SRC_DIR}"
|
|
|
|
echo "TD_BIN_DIR=${TD_BIN_DIR}"
|
|
|
|
echo "TDNATIVES_BIN_DIR=${TDNATIVES_BIN_DIR}"
|
|
|
|
echo "TDNATIVES_CPP_SRC_DIR=${TDNATIVES_CPP_SRC_DIR}"
|
|
|
|
echo "TDNATIVES_DOCS_BIN_DIR=${TDNATIVES_DOCS_BIN_DIR}"
|
|
|
|
echo "TD_BUILD_DIR=${TD_BUILD_DIR}"
|
2020-10-06 22:25:44 +02:00
|
|
|
echo "TD_CROSS_BIN_DIR=${TD_CROSS_BIN_DIR}"
|
2020-10-03 14:06:54 +02:00
|
|
|
echo "TDNATIVES_CPP_BUILD_DIR=${TDNATIVES_CPP_BUILD_DIR}"
|
|
|
|
echo "JAVA_SRC_DIR=${JAVA_SRC_DIR}"
|
|
|
|
echo "TDLIB_SERIALIZER_DIR=${TDLIB_SERIALIZER_DIR}"
|
|
|
|
echo "PATH=${PATH}"
|
|
|
|
echo "JAVA_HOME=${JAVA_HOME}"
|
|
|
|
echo "JAVA_INCLUDE_PATH=${JAVA_INCLUDE_PATH}"
|
2020-10-05 00:19:18 +02:00
|
|
|
echo "JAVA_INCLUDE_PATH2=${JAVA_INCLUDE_PATH2}"
|
|
|
|
echo "JAVA_AWT_INCLUDE_PATH=${JAVA_AWT_INCLUDE_PATH}"
|
2020-10-03 14:06:54 +02:00
|
|
|
echo "VCPKG_DIR=${VCPKG_DIR}"
|
|
|
|
echo "MAVEN_OPTS=${MAVEN_OPTS}"
|
|
|
|
echo "TRAVIS_CPU_ARCH=${TRAVIS_CPU_ARCH}"
|
|
|
|
echo "TRAVIS_CPU_ARCH_JAVA=${TRAVIS_CPU_ARCH_JAVA}"
|
|
|
|
echo "TRAVIS_CPU_ARCH_STANDARD=${TRAVIS_CPU_ARCH_STANDARD}"
|
|
|
|
echo "TRAVIS_OS_NAME=${TRAVIS_OS_NAME}"
|
|
|
|
echo "TRAVIS_OS_NAME_STANDARD=${TRAVIS_OS_NAME_STANDARD}"
|
|
|
|
echo "TRAVIS_OS_NAME_SHORT=${TRAVIS_OS_NAME_SHORT}"
|
|
|
|
echo "SRC_TDJNI_LIBNAME=${SRC_TDJNI_LIBNAME}"
|
|
|
|
echo "DEST_TDJNI_LIBNAME=${DEST_TDJNI_LIBNAME}"
|
2020-10-04 13:55:17 +02:00
|
|
|
echo "TDLIB_RESOURCES_OUTPUT_DIR=${TDLIB_RESOURCES_OUTPUT_DIR}"
|
2020-10-04 20:18:19 +02:00
|
|
|
echo "CURRENT DIRECTORY* ($(pwd)):"
|
2020-10-04 13:55:17 +02:00
|
|
|
ls -alch "$(pwd)"
|
2020-10-04 20:18:19 +02:00
|
|
|
echo "WORK DIRECTORY CONTENT* (${TRAVIS_BUILD_DIR}):"
|
2020-10-04 13:55:17 +02:00
|
|
|
ls -alch "$TRAVIS_BUILD_DIR"
|