spiegel-keyman/android/build.sh
Darcy Wong d87bc5d12f fix(android): Update scripts
* Set base android build.sh to use bash
* Update parse-crowdin.sh to handle Android regions (prefix with `r`)
2020-03-10 13:26:22 +07:00

46 lines
966 B
Bash
Executable file

#!/bin/bash
# Build Keyman Engine Android and KMAPro
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}")"
. "$(dirname "$THIS_SCRIPT")/../resources/build/build-utils.sh"
## END STANDARD BUILD SCRIPT INCLUDE
#
# Prevents 'clear' on exit of mingw64 bash shell
#
SHLVL=0
echo Build KMEA and KMAPro:
# Building Keyman Engine for Android
cd "$KEYMAN_ROOT/android/KMEA"
./build.sh "$@"
if [ $? -ne 0 ]; then
die "ERROR: KMEA/build.sh failed"
fi
# Building Keyman for Android
cd "$KEYMAN_ROOT/android/KMAPro"
./build.sh "$@"
if [ $? -ne 0 ]; then
die "ERROR: KMAPro/build.sh failed"
fi
cd "$KEYMAN_ROOT/android"
# Building OEM apps
if [ ! -z "$RELEASE_OEM" ]; then
pushd "$KEYMAN_ROOT/oem/firstvoices/android"
./build.sh -lib-nobuild "$@"
if [ $? -ne 0 ]; then
die "ERROR: oem/firstvoices/android/build.sh failed"
fi
fi