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