project_files/Android-build/download_libs.sh
author koda
Sun, 29 Jan 2012 18:52:01 +0100
changeset 6613 c7bf3b7c49dd
parent 6592 cf12f07d6f24
child 9369 b96988134dc6
permissions -rwxr-xr-x
disabling the discovery of SDL13+ on desktop. SDL13 has become SDL2 with a completely different ABI and will require a new FindSDL2 module for Cmake to be found; for current sdl development installations, hedgewars will either use the compatibility layer (present in sdl1.3 but not in sdl2) or just fail to build (in case sdl2 is installed but sdl1.2.* is not). whew
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6590
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     1
#!/bin/sh
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     2
download_and_zip (){
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     3
    echo "Downloading: $1"
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     4
    curl -silent -o tmp.zip $1 #grab the zips from an url
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     5
    unzip -qq tmp.zip  -d SDL-android-project/jni/tmp #unzip it to a tmp file
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     6
    rm -fr SDL-android-project/jni/$2 #remove any old dirs, we will get those files back with hg revert in CMakeList
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     7
    mv SDL-android-project/jni/tmp/* SDL-android-project/jni/$2 #move the tmp dir to the jni directory
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     8
    rm tmp.zip #remove old tmp dir
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     9
}
6592
cf12f07d6f24 update the core/android/SDL_android.cpp fix some includes in Android.mks, use a different host to download some libs, sdl doesn't have up to date tarballs..
Xeli
parents: 6590
diff changeset
    10
download_and_zip http://www.xelification.com/tmp/jpeg.zip jpeg
cf12f07d6f24 update the core/android/SDL_android.cpp fix some includes in Android.mks, use a different host to download some libs, sdl doesn't have up to date tarballs..
Xeli
parents: 6590
diff changeset
    11
download_and_zip http://www.xelification.com/tmp/png.zip png
6590
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    12
download_and_zip http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.zip SDL_image
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    13
download_and_zip http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.zip SDL_mixer
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    14
download_and_zip http://www.xelification.com/tmp/mikmod.zip mikmod #temporary url since the libsdl.org site doesn't work at the moment
6592
cf12f07d6f24 update the core/android/SDL_android.cpp fix some includes in Android.mks, use a different host to download some libs, sdl doesn't have up to date tarballs..
Xeli
parents: 6590
diff changeset
    15
download_and_zip http://www.xelification.com/tmp/SDL_net.zip SDL_net
6590
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    16
download_and_zip http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.zip SDL_ttf
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    17
download_and_zip http://www.libsdl.org/tmp/SDL-1.3.zip SDL
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    18