| 6 |
| 7 | case "$(uname -s)" in |
| 8 | MINGW*|MSYS*|CYGWIN*) |
| 9 | CMAKE_BIN_DIR="$(ls -d "$ANDROID_HOME"/cmake/*/bin 2>/dev/null | sort -V | tail -n 1)" |
| 10 | if [ -n "$CMAKE_BIN_DIR" ] && command -v cygpath >/dev/null 2>&1; then |
| 11 | CMAKE_BIN_DIR="$(cygpath -u "$CMAKE_BIN_DIR")" |
| 12 | fi |
| 13 | if [ -n "$CMAKE_BIN_DIR" ]; then |
| 14 | export PATH="$CMAKE_BIN_DIR:$PATH" |
| 15 | fi |
| 16 | if [ -n "$NINJA_PATH" ] && command -v cygpath >/dev/null 2>&1; then |
| 17 | export NINJA_PATH="$(cygpath -w "$NINJA_PATH")" |
| 18 | fi |
| 19 | ;; |
| 20 | *) |
| 21 | export PATH="$(echo "$ANDROID_HOME"/cmake/*/bin | tr ' ' ':'):$PATH" |
| 22 | ;; |
| 23 | esac |
| 24 |
| 25 | cd TMessagesProj/jni || exit 1 |
| 26 | git submodule update --init boringssl |
| 27 |
| 28 | cd boringssl |
| 29 | git reset --hard |
| 30 | git clean -fdx |
| 31 | cd .. |
| 32 |
| 33 | ./patch_boringssl.sh || exit 1 |
| 34 | ./build_boringssl.sh |
| 35 |