Changeset 4221
- Timestamp:
- Aug 7, 2012 9:06:10 AM (12 years ago)
- Location:
- pjproject/branches/projects/android
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/android/configure-android
r4202 r4221 8 8 echo "" 9 9 echo "where:" 10 echo " --use-ndk-cflags" 11 echo " Optional parameter to use the same compilation flags" 12 echo " as the one used by ndk-build" 13 echo " OPTIONS Other options that will be passed directly to" 14 echo " ./aconfigure script. Run ./aconfigure --help" 15 echo " for more info." 10 echo " --use-ndk-cflags Optional parameter to use the same compilation flags" 11 echo " as the one used by ndk-build" 12 echo " OPTIONS Other options that will be passed directly to" 13 echo " ./aconfigure script. Run ./aconfigure --help" 14 echo " for more info." 15 echo "" 16 echo "Environment variables:" 17 echo " ANDROID_NDK_ROOT Specify the directory of Android NDK to use." 18 echo " APP_PLATFORM Optionally specify the platform level used, e.g." 19 echo " android-8. By default, configure will use the maximum" 20 echo " platform level detected." 21 echo " TARGET_ABI Optionally specify a single target architecture, e.g." 22 echo " armeabi-v7a. By default, the target architecture is" 23 echo " armeabi." 24 echo "" 16 25 exit 0 17 26 fi 18 27 19 if test "x${ANDROID_NDK }" = "x"; then20 echo "$F error: ANDROID_NDK must be specified"28 if test "x${ANDROID_NDK_ROOT}" = "x"; then 29 echo "$F error: ANDROID_NDK_ROOT must be specified" 21 30 exit 0 22 31 fi … … 32 41 fi 33 42 43 if test "x$APP_PLATFORM" = "x"; then 44 APP_PLATFORM=`ls ${ANDROID_NDK_ROOT}/platforms/ | sed 's/android-//' | sort -gr | head -1` 45 APP_PLATFORM="android-${APP_PLATFORM}" 46 echo "$F: APP_PLATFORM not specified, using ${APP_PLATFORM}" 47 fi 48 49 if test "x$TARGET_ABI" = "x"; then 50 TARGET_ABI="armeabi" 51 echo "$F: TARGET_ABI not specified, using ${TARGET_ABI}" 52 fi 53 34 54 if test "$1" = "--use-ndk-cflags"; then 35 55 shift 36 for i in `${ANDROID_NDK }/ndk-build --dry-run --directory=${ANDROID_NDK}/samples/hello-jni`; do56 for i in `${ANDROID_NDK_ROOT}/ndk-build -n -C ${ANDROID_NDK_ROOT}/samples/hello-jni NDK_LOG=1 APP_PLATFORM=${APP_PLATFORM} APP_ABI=${TARGET_ABI}`; do 37 57 if test "$i" = "-c"; then break; fi 38 58 if test "x${NDK_CC}" != "x" -a "$i" != "-MF" -a "x`echo $i|grep '\.o\.d'`" = "x" -a "x`echo $i|grep 'include'`" = "x"; then … … 53 73 esac 54 74 55 if test "x$API_LEVEL" = "x"; then 56 API_LEVEL=`ls ${ANDROID_NDK}/platforms/ | sed 's/android-//' | sort -gr | head -1` 57 echo "$F: API_LEVEL not specified, using android-${API_LEVEL}" 58 fi 59 60 ANDROID_TC="${ANDROID_NDK}/toolchains/${TC_DIR}-4.4.3/prebuilt/${BUILD_MACHINE}" 75 ANDROID_TC="${ANDROID_NDK_ROOT}/toolchains/${TC_DIR}-4.4.3/prebuilt/${BUILD_MACHINE}" 61 76 if test ! -d ${ANDROID_TC}; then 62 77 echo "$F error: unable to find directory ${ANDROID_TC} in Android NDK" … … 64 79 fi 65 80 66 export ANDROID_SYSROOT="${ANDROID_NDK }/platforms/android-${API_LEVEL}/arch-arm"81 export ANDROID_SYSROOT="${ANDROID_NDK_ROOT}/platforms/${APP_PLATFORM}/arch-arm" 67 82 if test ! -d ${ANDROID_SYSROOT}; then 68 83 echo "$F error: unable to find sysroot dir ${ANDROID_SYSROOT} in Android NDK" -
pjproject/branches/projects/android/pjlib/include/pj/config_site_sample.h
r4211 r4221 417 417 #define PJSUA_MAX_CONF_PORTS (PJSUA_MAX_CALLS+2*PJSUA_MAX_PLAYERS) 418 418 #define PJSUA_MAX_BUDDIES 32 419 420 /* pjsua_app settings */421 #define USE_GUI 1422 419 #endif 423 420
Note: See TracChangeset
for help on using the changeset viewer.