|
@@ -30,6 +30,7 @@ abi="arm64-v8a" # "armeabi-v7a arm64-v8a x86 x86_64"
|
|
obj=
|
|
obj=
|
|
lib=
|
|
lib=
|
|
ndk_args=
|
|
ndk_args=
|
|
|
|
+flexpage=true
|
|
|
|
|
|
# Allow an external caller to specify locations and platform.
|
|
# Allow an external caller to specify locations and platform.
|
|
while [ $# -gt 0 ]; do
|
|
while [ $# -gt 0 ]; do
|
|
@@ -42,6 +43,8 @@ while [ $# -gt 0 ]; do
|
|
platform=${arg#APP_PLATFORM=}
|
|
platform=${arg#APP_PLATFORM=}
|
|
elif [ "${arg:0:8}" == "APP_ABI=" ]; then
|
|
elif [ "${arg:0:8}" == "APP_ABI=" ]; then
|
|
abi=${arg#APP_ABI=}
|
|
abi=${arg#APP_ABI=}
|
|
|
|
+ elif [ "${arg:0:32}" == "APP_SUPPORT_FLEXIBLE_PAGE_SIZES=" ]; then
|
|
|
|
+ flexpage=${arg#APP_SUPPORT_FLEXIBLE_PAGE_SIZES=}
|
|
else
|
|
else
|
|
ndk_args="$ndk_args $arg"
|
|
ndk_args="$ndk_args $arg"
|
|
fi
|
|
fi
|
|
@@ -67,6 +70,9 @@ done
|
|
# APP_* variables set in the environment here will not be seen by the
|
|
# APP_* variables set in the environment here will not be seen by the
|
|
# ndk-build makefile segments that use them, e.g., default-application.mk.
|
|
# ndk-build makefile segments that use them, e.g., default-application.mk.
|
|
# For consistency, pass all values on the command line.
|
|
# For consistency, pass all values on the command line.
|
|
|
|
+#
|
|
|
|
+# Add support for Google Play 16 KB Page size requirement:
|
|
|
|
+# https://developer.android.com/guide/practices/page-sizes#ndk-build
|
|
ndk-build \
|
|
ndk-build \
|
|
NDK_PROJECT_PATH=null \
|
|
NDK_PROJECT_PATH=null \
|
|
NDK_OUT=$obj \
|
|
NDK_OUT=$obj \
|
|
@@ -75,4 +81,5 @@ ndk-build \
|
|
APP_ABI="$abi" \
|
|
APP_ABI="$abi" \
|
|
APP_PLATFORM="$platform" \
|
|
APP_PLATFORM="$platform" \
|
|
APP_MODULES="SDL3" \
|
|
APP_MODULES="SDL3" \
|
|
|
|
+ APP_SUPPORT_FLEXIBLE_PAGE_SIZES="$flexpage" \
|
|
$ndk_args
|
|
$ndk_args
|