make: change android targets to android-xxx (#15351)

Cf. koreader/koreader-base#2357.
This commit is contained in:
Benoit Pierre authored and GitHub committed 2026-05-28 17:12:05 +02:00
1 parent af18761160
commit 8f919f993f
1 file changed
+3 -9
+3 -9
View File
@@ -85,9 +85,6 @@ function run_make() {
if [[ "${CURDIR}" != "${PWD}" ]]; then
cmd+=(-C "${CURDIR}")
fi
if [[ "${TARGET}" == 'android' ]]; then
cmd+=("ANDROID_ARCH=${ANDROID_ARCH}")
fi
for param in TARGET KODEBUG VERBOSE; do
cmd+=("${param}=${!param}")
done
@@ -169,10 +166,7 @@ function setup_target() {
macos) is_system macOS ;;
win32) is_system Windows ;;
# Devices.
android-arm | android-arm64 | android-x86 | android-x86_64)
ANDROID_ARCH="${TARGET#android-}"
TARGET='android'
;;
android-arm | android-arm64 | android-x86 | android-x86_64) ;;
cervantes) ;;
kindle | kindlehf | kindlepw2 | kindle-legacy) ;;
kobo | kobov4 | kobov5) ;;
@@ -197,7 +191,7 @@ function setup_target() {
# Fetch third party as needed.
check_submodules
# Automatically install Android NDK / SDK when not configured.
if [[ "${TARGET}" == 'android' ]]; then
if [[ "${TARGET}" = android-* ]]; then
local wanted=()
[[ -n "${ANDROID_NDK_HOME}${ANDROID_NDK_ROOT}" ]] || wanted+=('android-ndk')
[[ -n "${ANDROID_HOME}${ANDROID_SDK_ROOT}" ]] || wanted+=('android-sdk')
@@ -588,7 +582,7 @@ ANDROID TARGET:
fi
# Build the final make command.
local margs=()
if [[ "${TARGET}" == 'android' ]]; then
if [[ "${TARGET}" = android-* ]]; then
if [[ "$1" = *.apk ]]; then
margs+=(ANDROID_APK="$1")
NO_BUILD=1