message: build-utils adjustments to build on Docker container
diff: @@ -14,6 +14,16 @@ unset_env_variables() {
  }
  unset_env_variables
  +android_env() {
  + export SRC="/src"
  + export OPENSSL_ROOT="/openssl-${os_arch}"
  +}
  +
  +desktop_env() {
  + export SRC="${HOME}/src"
  + export OPENSSL_ROOT="${SRC}/openssl"
  +}
  +
  LIBRARY_VERSION=`egrep "version '.*'" ../build.gradle | sed "s/[version| ']//g"`
  LIBRARY_NAME=jlibtorrent
  LIBTORRENT_REVISION=6aad9a463236f0e12f4c4808e4aa84aa0d8b7450 # fix incoming TCP connections when using tracker-only proxy
  @@ -44,12 +54,13 @@ BOOST_VERSION="73"
  BOOST_MAJOR="1"
  BOOST_MINOR="0"
  SWIG=`pwd`
  -SRC="${HOME}/src"
  -BOOST_ROOT="${SRC}/boost_${BOOST_MAJOR}_${BOOST_VERSION}_${BOOST_MINOR}"
  -LIBTORRENT_ROOT="${SRC}/libtorrent"
  -OPENSSL_SOURCE="${SRC}/openssl-${OPENSSL_VERSION}"
  -OPENSSL_ROOT="${SRC}/openssl"
  +
  +common_env() {
  + export BOOST_ROOT="${SRC}/boost_${BOOST_MAJOR}_${BOOST_VERSION}_${BOOST_MINOR}"
  + export LIBTORRENT_ROOT="${SRC}/libtorrent"
  + export OPENSSL_SOURCE="${SRC}/openssl-${OPENSSL_VERSION}"
  export OPENSSL_NO_OPTS="no-afalgeng no-async no-autoalginit no-autoerrinit no-capieng no-cms no-comp no-deprecated no-dgram no-dso no-dtls no-dynamic-engine no-egd no-engine no-err no-filenames no-gost no-hw no-makedepend no-multiblock no-nextprotoneg no-posix-io no-psk no-rdrand no-sctp no-shared no-sock no-srp no-srtp no-static-engine no-stdio no-threads no-ui-console no-zlib no-zlib-dynamic -fno-strict-aliasing -fvisibility=hidden -Os"
  +}
  prompt_msg() {
  echo
  