Added a script to build and install the application, users must define a path to the ndk hedgeroid
authorXeli
Fri, 24 Jun 2011 13:24:51 +0200
branchhedgeroid
changeset 5361 0d73a5e589b5
parent 5359 86b76c93a612
child 5363 7f7800581012
Added a script to build and install the application, users must define a path to the ndk
project_files/Android-build/complete_build
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project_files/Android-build/complete_build	Fri Jun 24 13:24:51 2011 +0200
@@ -0,0 +1,29 @@
+#! /bin/bash
+
+#USER DEFINES
+ANDROID_NDK=/home/richard/SoftDev/android/android-ndk-r5b
+
+#END USER DEFINES
+
+cd SDL-android-project
+$ANDROID_NDK/ndk-build
+if [ $? -ne 0 ] 
+then 
+  echo "Failed to execute $ANDROID_NDK/ndk-build"
+  exit 1
+fi
+cd ..
+make -f Makefile.android
+if [ $? -ne 0 ] 
+then 
+  echo "Failed to execute make -f Makefile.android"
+  exit 1
+fi
+cd SDL-android-project
+ant install
+if [ $? -ne 0 ] 
+then 
+  echo "Failed to execute ant install"
+  exit 1
+fi
+exit 0