project_files/Android-build/complete_build
branchhedgeroid
changeset 5381 8f95038f3f75
parent 5379 4ed99dc92763
child 5383 cb217271f344
equal deleted inserted replaced
5379:4ed99dc92763 5381:8f95038f3f75
     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