Changeset 14088


Ignore:
Timestamp:
12/01/12 23:09:13 (12 years ago)
Author:
Eric.Larour
Message:

CHG: introduced android ndk for include files. Goal is to be able to use android logging

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/configs/config-arm-linux.sh

    r13936 r14088  
    66    --host="arm-linux-androideabi" \
    77    --enable-shared \
    8     --with-android=jni\
     8    --with-android=jni \
     9        --with-android-ndk=$ISSM_DIR/externalpackages/android/android-ndk/install \
    910    --without-fortran \
    1011        --without-wrappers \
  • issm/trunk-jpl/m4/issm_options.m4

    r13935 r14088  
    13261326                dnl defaults
    13271327                HAVE_ANDROID=jni
    1328 
    13291328                AC_DEFINE([_HAVE_ANDROID_],[1],[with android capability])
     1329                AC_DEFINE([_HAVE_ANDROID_JNI_],[1],[with android jni])
    13301330        elif test "x$ANDROID" = "xexe"; then
    13311331                dnl defaults
     
    13421342        AM_CONDITIONAL([ANDROIDEXE], [test x$HAVE_ANDROID = xexe])
    13431343        AC_MSG_RESULT($HAVE_ANDROID)
     1344        dnl }}}
     1345        dnl with-android-ndk{{{
     1346        AC_ARG_WITH([android-ndk],
     1347          AS_HELP_STRING([--with-android-ndk=DIR], [android-ndk root directory.]),
     1348          [ANDROID_NDK_ROOT=$withval],[ANDROID_NDK_ROOT=""])
     1349        AC_MSG_CHECKING(with android ndk)
     1350       
     1351        if test -d "$ANDROID_NDK_ROOT"; then
     1352                dnl defaults
     1353                HAVE_ANDROID_NDK=yes
     1354                ANDROID_NDKINCL="-I$ANDROID_NDK_ROOT/arm-linux-android-install/sysroot/usr/include"
     1355
     1356                AC_DEFINE([_HAVE_ANDROID_NDK_],[1],[with android ndk in ISSM src])
     1357                AC_SUBST([ANDROID_NDKINCL])
     1358        else
     1359                HAVE_ANDROID_NDK=no
     1360        fi
     1361        AC_MSG_RESULT($HAVE_ANDROID_NDK)
    13441362        dnl }}}
    13451363        dnl with-3d{{{
Note: See TracChangeset for help on using the changeset viewer.