Changeset 4697 for pjproject/branches/projects/pjsua2/configure-android
- Timestamp:
- Dec 18, 2013 11:42:04 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/configure-android
r4691 r4697 87 87 export CXX="${NDK_CXX}" 88 88 89 export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/ -L${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi"90 export LIBS="${LIBS} -l gnustl_static -lc -lgcc ${ANDROID_SYSROOT}/usr/lib/crtbegin_so.o"91 export CFLAGS="${CFLAGS} ${NDK_CFLAGS} -I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/include -I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include"89 export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/" 90 export LIBS="${LIBS} -lc -lgcc" 91 export CFLAGS="${CFLAGS} ${NDK_CFLAGS}" 92 92 export CPPFLAGS="${CFLAGS} -fexceptions -frtti" 93 93 export CXXFLAGS="${NDK_CXXFLAGS} -fexceptions -frtti" … … 111 111 export CXX="${ANDROID_TC}/bin/${TARGET_HOST}-g++" 112 112 113 export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/ -L${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi"114 export LIBS="${LIBS} -l gnustl_static -lc -lgcc ${ANDROID_SYSROOT}/usr/lib/crtbegin_so.o"115 export CFLAGS="${CFLAGS} -I${ANDROID_SYSROOT}/usr/include -I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/include -I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include"113 export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/" 114 export LIBS="${LIBS} -lc -lgcc" 115 export CFLAGS="${CFLAGS} -I${ANDROID_SYSROOT}/usr/include" 116 116 export CPPFLAGS="${CFLAGS} -fexceptions -frtti" 117 117 export CXXFLAGS="${CXXFLAGS} -shared --sysroot=${ANDROID_SYSROOT} -fexceptions -frtti" 118 118 119 119 fi 120 121 # C++ STL 122 # Note: STL for pjsua2 sample app is specified in pjsip-apps/src/swig/java/android/jni/Application.mk 123 124 # gnustl 125 STDCPP_TC_VER=`ls -d ${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/[0-9]* | sort -gr | head -1` 126 STDCPP_CFLAGS="-I${STDCPP_TC_VER}/include -I${STDCPP_TC_VER}/libs/armeabi/include" 127 STDCPP_LIBS="${ANDROID_SYSROOT}/usr/lib/crtbegin_so.o -lgnustl_static" 128 STDCPP_LDFLAGS="-L${STDCPP_TC_VER}/libs/armeabi" 129 130 # stlport 131 #STDCPP_CFLAGS="-I${ANDROID_NDK_ROOT}/sources/cxx-stl/stlport/stlport" 132 #STDCPP_LIBS="${ANDROID_SYSROOT}/usr/lib/crtbegin_so.o -lstlport_static -ldl" 133 #STDCPP_LDFLAGS="-L${ANDROID_NDK_ROOT}/sources/cxx-stl/stlport/libs/armeabi" 134 135 export CFLAGS="${CFLAGS} ${STDCPP_CFLAGS}" 136 export LIBS="${STDCPP_LIBS} ${LIBS}" 137 export LDFLAGS="${LDFLAGS} ${STDCPP_LDFLAGS}" 120 138 121 139 # Print settings
Note: See TracChangeset
for help on using the changeset viewer.