project_files/Android-build/complete_build
author Xeli
Tue, 28 Jun 2011 18:33:51 +0200
branchhedgeroid
changeset 5379 4ed99dc92763
parent 5361 0d73a5e589b5
permissions -rwxr-xr-x
Moved the Audio directory from the iOS folder one level up. Android-build will now refer to it SDL-android-project/build.xml must be changed if the directory is moved

#! /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