Changeset 4569 for pjproject


Ignore:
Timestamp:
Jul 19, 2013 10:08:24 AM (11 years ago)
Author:
ming
Message:

JNI projects:

  • Modify configure-android to autodetect gcc version and build machine
Location:
pjproject/branches/projects/jni
Files:
1 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/jni/configure-android

    r4435 r4569  
    6666fi 
    6767 
    68 HOST_OS=$(uname -s) 
    69 case $HOST_OS in 
    70   Darwin) BUILD_MACHINE="darwin-x86";; 
    71   Linux) BUILD_MACHINE="linux-x86";; 
    72   CYGWIN*|*_NT-*) BUILD_MACHINE="windows";; 
    73 esac 
    74  
    75 ANDROID_TC="${ANDROID_NDK_ROOT}/toolchains/${TC_DIR}-4.4.3/prebuilt/${BUILD_MACHINE}" 
     68ANDROID_TC_VER=`ls -d ${ANDROID_NDK_ROOT}/toolchains/${TC_DIR}-* | sed 's/clang/0/' | sort -gr | head -1` 
     69ANDROID_TC=`ls -d ${ANDROID_TC_VER}/prebuilt/*` 
    7670if test ! -d ${ANDROID_TC}; then 
    7771  echo "$F error: unable to find directory ${ANDROID_TC} in Android NDK" 
Note: See TracChangeset for help on using the changeset viewer.