Added support for CrystaX NDK r5b

This commit is contained in:
pelya
2011-03-22 12:09:29 +02:00
parent 21bf45e9ef
commit b8be901b25
3 changed files with 5 additions and 5 deletions

View File

@@ -17,11 +17,11 @@ $(info Cannot determine NDK version, assuming NDK r5b - please do not rename NDK
NDK_VERSION := r5b
endif
ifneq ($(findstring -crystax,$(NDK_VERSION)),)
ifneq ($(findstring r4-crystax,$(NDK_VERSION)),)
$(info Building with CrystaX toolchain - internal STLPort disabled)
CRYSTAX_TOOLCHAIN := 1
endif
ifneq ($(findstring r5b,$(NDK_VERSION)),)
ifneq ($(findstring r5b,$(NDK_VERSION))$(findstring r5-crystax,$(NDK_VERSION)),)
$(info Building with NDK r5b - internal STLPort disabled)
NDK_R5_TOOLCHAIN := 1
endif

View File

@@ -25,8 +25,8 @@ LOCAL_PATH=`dirname $0`
LOCAL_PATH=`cd $LOCAL_PATH && pwd`
echo LOCAL_PATH $LOCAL_PATH
if [ -z "`echo $NDK | grep 'android-ndk-r5b'`" ] ; then
echo "The only supported NDK version is android-ndk-r5b, please download it from http://developer.android.com/"
if [ -z "`echo $NDK | grep 'android-ndk-r5b'``echo $NDK | grep 'android-ndk-r5-crystax'`" ] ; then
echo "The only supported NDK versions are android-ndk-r5b or android-ndk-r5-crystax"
exit 1
fi