project_files/Android-build/complete_build
branchhedgeroid
changeset 5361 0d73a5e589b5
equal deleted inserted replaced
5359:86b76c93a612 5361:0d73a5e589b5
       
     1 #! /bin/bash
       
     2 
       
     3 #USER DEFINES
       
     4 ANDROID_NDK=/home/richard/SoftDev/android/android-ndk-r5b
       
     5 
       
     6 #END USER DEFINES
       
     7 
       
     8 cd SDL-android-project
       
     9 $ANDROID_NDK/ndk-build
       
    10 if [ $? -ne 0 ] 
       
    11 then 
       
    12   echo "Failed to execute $ANDROID_NDK/ndk-build"
       
    13   exit 1
       
    14 fi
       
    15 cd ..
       
    16 make -f Makefile.android
       
    17 if [ $? -ne 0 ] 
       
    18 then 
       
    19   echo "Failed to execute make -f Makefile.android"
       
    20   exit 1
       
    21 fi
       
    22 cd SDL-android-project
       
    23 ant install
       
    24 if [ $? -ne 0 ] 
       
    25 then 
       
    26   echo "Failed to execute ant install"
       
    27   exit 1
       
    28 fi
       
    29 exit 0