add cmdline options to generate single-abi .so

Part of getting split builds going. I think.
This commit is contained in:
Eric House 2017-06-06 05:45:31 -07:00
parent 41683f95a7
commit f85f7c41be

View file

@ -10,7 +10,7 @@ XWORDS_DEBUG_ARMONLY=${XWORDS_DEBUG_ARMONLY:-""}
XWORDS_DEBUG_X86ONLY=${XWORDS_DEBUG_X86ONLYx:-""}
usage() {
echo "usage $0 [--with-clang]"
echo "usage $0 [--with-clang] [--arm-only|--x86-only]"
exit 1
}
@ -19,6 +19,12 @@ while [ $# -gt 0 ]; do
--with-clang)
USE_CLANG=1
;;
--arm-only)
XWORDS_DEBUG_ARMONLY=1
;;
--x86-only)
XWORDS_DEBUG_X86ONLY=1
;;
*)
usage "Unexpected param $1"
;;
@ -31,7 +37,7 @@ echo "# Generated by $0; do not edit!!!" > $TMP_MK
[ -n "$USE_CLANG" ] && echo "NDK_TOOLCHAIN_VERSION := clang" >> $TMP_MK
if [ -n "$XWORDS_DEBUG_ARMONLY" ]; then
echo "APP_ABI := armeabi" >> $TMP_MK
echo "APP_ABI := armeabi-v7a" >> $TMP_MK
elif [ -n "$XWORDS_DEBUG_X86ONLY" ]; then
echo "APP_ABI := x86" >> $TMP_MK
else