project_files/Android-build/download_libs.sh
author Wuzzy <Wuzzy2@mail.ru>
Sat, 02 Nov 2019 13:01:28 +0100
changeset 15501 5a30396f8fb2
parent 9369 b96988134dc6
permissions -rwxr-xr-x
ClimbHome: Change misleading Seed assignment to nil value This was "Seed = ClimbHome", but ClimbHome was a nil value. This code still worked as the engine interpreted the nil value as empty string. But it can be very misleading. This changeset makes the Seed assignment more explicit by assigning the empty string directly. The compability has been tested.

#!/bin/sh
download_and_zip (){
    echo "Downloading: $1"
    curl -silent -o tmp.zip $1 #grab the zips from an url
    unzip -qq tmp.zip  -d SDL-android-project/jni/tmp #unzip it to a tmp file
    rm -fr SDL-android-project/jni/$2 #remove any old dirs, we will get those files back with hg revert in CMakeList
    mv SDL-android-project/jni/tmp/* SDL-android-project/jni/$2 #move the tmp dir to the jni directory
    rm tmp.zip #remove old tmp dir
}
download_and_zip http://www.xelification.com/tmp/jpeg.zip jpeg
download_and_zip http://www.xelification.com/tmp/png.zip png
download_and_zip http://www.libsdl.org/tmp/SDL_image/release/SDL2_image-2.0.0.zip SDL_image
download_and_zip http://www.libsdl.org/tmp/SDL_mixer/release/SDL2_mixer-2.0.0.zip SDL_mixer
download_and_zip http://www.xelification.com/tmp/mikmod.zip mikmod #temporary url since the libsdl.org site doesn't work at the moment
download_and_zip http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.zip SDL_net
download_and_zip http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.zip SDL_ttf
download_and_zip http://www.libsdl.org/tmp/release/SDL2-2.0.0.zip SDL