mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
add cmdline options to generate single-abi .so
Part of getting split builds going. I think.
This commit is contained in:
parent
41683f95a7
commit
f85f7c41be
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue